From: Alexey Brodkin Date: Thu, 11 Oct 2018 23:08:28 +0300 Subject: [U-Boot] [PATCH 2/2] iot_dk/hsdk: Implement its own print_cpuinfo() In-Reply-To: <1539288508-1231-1-git-send-email-abrodkin@synopsys.com> References: <1539288508-1231-1-git-send-email-abrodkin@synopsys.com> Message-ID: <1539288508-1231-3-git-send-email-abrodkin@synopsys.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de ARC IDENTITY register only encodes major architecture type and version while for a particular board/silicon we may know better which template was used and so we may identify CPU more precise, which exactly we do here. Signed-off-by: Alexey Brodkin --- board/synopsys/hsdk/hsdk.c | 8 ++++++++ board/synopsys/iot_devkit/iot_devkit.c | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/board/synopsys/hsdk/hsdk.c b/board/synopsys/hsdk/hsdk.c index fb4286f..4f46d2e 100644 --- a/board/synopsys/hsdk/hsdk.c +++ b/board/synopsys/hsdk/hsdk.c @@ -1046,3 +1046,11 @@ int board_mmc_init(bd_t *bis) return 0; } + +#ifdef CONFIG_DISPLAY_CPUINFO +int print_cpuinfo(void) +{ + printf("CPU: ARC HS38 v2.1c\n"); + return 0; +} +#endif /* CONFIG_DISPLAY_CPUINFO */ diff --git a/board/synopsys/iot_devkit/iot_devkit.c b/board/synopsys/iot_devkit/iot_devkit.c index c185d5c..1d848dd 100644 --- a/board/synopsys/iot_devkit/iot_devkit.c +++ b/board/synopsys/iot_devkit/iot_devkit.c @@ -166,3 +166,11 @@ int checkboard(void) puts("Board: Synopsys IoT Development Kit\n"); return 0; }; + +#ifdef CONFIG_DISPLAY_CPUINFO +int print_cpuinfo(void) +{ + printf("CPU: ARC EM9D\n"); + return 0; +} +#endif /* CONFIG_DISPLAY_CPUINFO */ -- 2.7.4