mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-22 20:58:22 +00:00
ARM: keystone2: Enable CONFIG_DISPLAY_CPUINFO
Add print_cpuinfo() function and enable CONFIG_DISPLAY_CPUINFO for keystone platforms, so that cpu info can be displayed during boot. Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Vitaly Andrianov <vitalya@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
This commit is contained in:
parent
cfe5f0cda0
commit
aeabe652bb
2 changed files with 33 additions and 0 deletions
|
@ -149,3 +149,35 @@ void enable_caches(void)
|
||||||
dcache_enable();
|
dcache_enable();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(CONFIG_DISPLAY_CPUINFO)
|
||||||
|
int print_cpuinfo(void)
|
||||||
|
{
|
||||||
|
u16 cpu = get_part_number();
|
||||||
|
u8 rev = cpu_revision();
|
||||||
|
|
||||||
|
puts("CPU: ");
|
||||||
|
switch (cpu) {
|
||||||
|
case CPU_66AK2Hx:
|
||||||
|
puts("66AK2Hx SR");
|
||||||
|
break;
|
||||||
|
case CPU_66AK2Lx:
|
||||||
|
puts("66AK2Lx SR");
|
||||||
|
break;
|
||||||
|
case CPU_66AK2Ex:
|
||||||
|
puts("66AK2Ex SR");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
puts("Unknown\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (rev == 2)
|
||||||
|
puts("2.0\n");
|
||||||
|
else if (rev == 1)
|
||||||
|
puts("1.1\n");
|
||||||
|
else if (rev == 0)
|
||||||
|
puts("1.0\n");
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
/* U-Boot Build Configuration */
|
/* U-Boot Build Configuration */
|
||||||
#define CONFIG_SKIP_LOWLEVEL_INIT /* U-Boot is a 2nd stage loader */
|
#define CONFIG_SKIP_LOWLEVEL_INIT /* U-Boot is a 2nd stage loader */
|
||||||
#define CONFIG_BOARD_EARLY_INIT_F
|
#define CONFIG_BOARD_EARLY_INIT_F
|
||||||
|
#define CONFIG_DISPLAY_CPUINFO
|
||||||
|
|
||||||
/* SoC Configuration */
|
/* SoC Configuration */
|
||||||
#define CONFIG_ARCH_CPU_INIT
|
#define CONFIG_ARCH_CPU_INIT
|
||||||
|
|
Loading…
Add table
Reference in a new issue