mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-07-04 13:22:31 +00:00
arm: rmobile: kzm9g: fix CPU info
CPU info register was read wrongly by mistake. And function rmobile_get_cpu_rev() was not called properly. Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
This commit is contained in:
parent
67d4d26a0b
commit
170cc96f6c
2 changed files with 4 additions and 4 deletions
|
@ -29,19 +29,19 @@ u32 rmobile_get_cpu_type(void)
|
||||||
u32 type;
|
u32 type;
|
||||||
struct sh73a0_hpb *hpb = (struct sh73a0_hpb *)HPB_BASE;
|
struct sh73a0_hpb *hpb = (struct sh73a0_hpb *)HPB_BASE;
|
||||||
|
|
||||||
id = readl(hpb->cccr);
|
id = readl(&hpb->cccr);
|
||||||
type = (id >> 8) & 0xFF;
|
type = (id >> 8) & 0xFF;
|
||||||
|
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 get_cpu_rev(void)
|
u32 rmobile_get_cpu_rev(void)
|
||||||
{
|
{
|
||||||
u32 id;
|
u32 id;
|
||||||
u32 rev;
|
u32 rev;
|
||||||
struct sh73a0_hpb *hpb = (struct sh73a0_hpb *)HPB_BASE;
|
struct sh73a0_hpb *hpb = (struct sh73a0_hpb *)HPB_BASE;
|
||||||
|
|
||||||
id = readl(hpb->cccr);
|
id = readl(&hpb->cccr);
|
||||||
rev = (id >> 4) & 0xF;
|
rev = (id >> 4) & 0xF;
|
||||||
|
|
||||||
return rev;
|
return rev;
|
||||||
|
|
|
@ -62,7 +62,7 @@ int print_cpuinfo(void)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
printf("CPU: Renesas Electronics CPU rev %d\n",
|
printf("CPU: Renesas Electronics CPU rev %d\n",
|
||||||
get_cpu_rev());
|
rmobile_get_cpu_rev());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue