From: Jaehoon Chung Date: Fri, 15 Jan 2021 04:27:34 +0000 (+0900) Subject: board: rpi: add print_archinfo to display arch information X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=962a0a6c462d541250396fd9edf8de8cc41a9288;p=platform%2Fkernel%2Fu-boot.git board: rpi: add print_archinfo to display arch information 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. - In mainline, it's used to display cpuinfo with CONFIG_DISPLAY_CPUINFO. But PRI4 doesn't implement print_cpuinfo(). Instead, display a cpuinfo in get_board_rev about RPI4 boards. In RPI4 case, U-Boot 2020.10-drity (Jan 15 2021 - 13:24:55 +0900) DARM: 3.9 GiB RPI 4 Model B (0xc03111) CPU: armv7 Change-Id: I485194baa965065f44bac966d014ccfb31b9da60 Signed-off-by: Jaehoon Chung --- diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index a5bee9c334..3ffc6b6d47 100644 --- a/board/raspberrypi/rpi/rpi.c +++ b/board/raspberrypi/rpi/rpi.c @@ -509,6 +509,8 @@ static void get_board_rev(void) } printf("RPI %s (0x%x)\n", model->name, revision); + + printf("CPU: %s\n", CONFIG_SYS_CPU); } int board_init(void)