
Current U-boot doesn't display a message about which architecture is used. So Developer is difficult to know it by intuition. This patch is displaying to CPU information with CONFIG_SYS_CPU.
CPU: armv8 DARM: 3.9 GiB
Signed-off-by: Jaehoon Chung jh80.chung@samsung.com --- common/board_f.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/common/board_f.c b/common/board_f.c index 9f441c44f1..f42c062602 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -206,6 +206,14 @@ static int print_cpuinfo(void) } #endif
+#if defined(CONFIG_SYS_CPU) +static int print_archinfo(void) +{ + printf("CPU: %s\n", CONFIG_SYS_CPU); + return 0; +} +#endif + static int announce_dram_init(void) { puts("DRAM: "); @@ -880,6 +888,9 @@ static const init_fnc_t init_sequence_f[] = { #endif #if defined(CONFIG_VID) && !defined(CONFIG_SPL) init_func_vid, +#endif +#if defined(CONFIG_SYS_CPU) + print_archinfo, #endif announce_dram_init, dram_init, /* configure available RAM banks */