aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut2024-02-27 17:05:49 +0100
committerTom Rini2024-03-02 14:29:36 -0500
commit18c3f3a26558205099f7b825cc8a6f6d237f9cdd (patch)
tree8b9f560ee3ad2125c7433ebe416f9d5cffc01dbd
parent74215bb0b0bf016fb1777b91d30039a9c20026ab (diff)
ARM: renesas: Rename rmobile_cpuinfo[] to renesas_cpuinfo[]
Rename rmobile_cpuinfo[] to renesas_cpuinfo[] because all the chips are made by Renesas, while only a subset of them is from the R-Mobile line. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com>
-rw-r--r--arch/arm/mach-rmobile/cpu_info.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-rmobile/cpu_info.c b/arch/arm/mach-rmobile/cpu_info.c
index 3790ffd0a81..66ac6b3fcfb 100644
--- a/arch/arm/mach-rmobile/cpu_info.c
+++ b/arch/arm/mach-rmobile/cpu_info.c
@@ -61,7 +61,7 @@ u32 renesas_get_cpu_rev_fraction(void)
static const struct {
u16 cpu_type;
u8 cpu_name[10];
-} rmobile_cpuinfo[] = {
+} renesas_cpuinfo[] = {
{ RENESAS_CPU_TYPE_R8A7790, "R8A7790" },
{ RENESAS_CPU_TYPE_R8A7791, "R8A7791" },
{ RENESAS_CPU_TYPE_R8A7792, "R8A7792" },
@@ -86,19 +86,19 @@ static int renesas_cpuinfo_idx(void)
u32 cpu_type = renesas_get_cpu_type();
int i;
- for (i = 0; i < ARRAY_SIZE(rmobile_cpuinfo) - 1; i++)
- if (rmobile_cpuinfo[i].cpu_type == cpu_type)
+ for (i = 0; i < ARRAY_SIZE(renesas_cpuinfo) - 1; i++)
+ if (renesas_cpuinfo[i].cpu_type == cpu_type)
return i;
/* Unknown "CPU" entry */
- return ARRAY_SIZE(rmobile_cpuinfo) - 1;
+ return ARRAY_SIZE(renesas_cpuinfo) - 1;
}
static const u8 *get_cpu_name(int idx)
{
const u8 *cpu_name = rzg_get_cpu_name();
- return cpu_name ? cpu_name : rmobile_cpuinfo[idx].cpu_name;
+ return cpu_name ? cpu_name : renesas_cpuinfo[idx].cpu_name;
}
#ifdef CONFIG_ARCH_MISC_INIT
@@ -121,7 +121,7 @@ int print_cpuinfo(void)
{
int i = renesas_cpuinfo_idx();
- if (rmobile_cpuinfo[i].cpu_type == RENESAS_CPU_TYPE_R8A7796 &&
+ if (renesas_cpuinfo[i].cpu_type == RENESAS_CPU_TYPE_R8A7796 &&
renesas_get_cpu_rev_integer() == 1 &&
renesas_get_cpu_rev_fraction() == 1) {
printf("CPU: Renesas Electronics %s rev 1.1/1.2\n", get_cpu_name(i));