[U-Boot] [PATCH 2/5] arc: Get rid of board-specific print_cpuinfo()

Alexey Brodkin alexey.brodkin at synopsys.com
Tue Nov 27 06:46:58 UTC 2018


Since we now do advanced CPU identification in
generic ARC code there's no need to have per-board
hardcoded data.

Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
---
 board/synopsys/hsdk/hsdk.c             |  8 --------
 board/synopsys/iot_devkit/iot_devkit.c | 10 ----------
 2 files changed, 18 deletions(-)

diff --git a/board/synopsys/hsdk/hsdk.c b/board/synopsys/hsdk/hsdk.c
index b6aefdbe6d6a..ff343599b092 100644
--- a/board/synopsys/hsdk/hsdk.c
+++ b/board/synopsys/hsdk/hsdk.c
@@ -1053,11 +1053,3 @@ 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 f8838fb3ce87..8424e09bd3cf 100644
--- a/board/synopsys/iot_devkit/iot_devkit.c
+++ b/board/synopsys/iot_devkit/iot_devkit.c
@@ -189,13 +189,3 @@ int checkboard(void)
 	puts("Board: Synopsys IoT Development Kit\n");
 	return 0;
 };
-
-#ifdef CONFIG_DISPLAY_CPUINFO
-int print_cpuinfo(void)
-{
-	char mhz[8];
-
-	printf("CPU:   ARC EM9D at %s MHz\n", strmhz(mhz, gd->cpu_clk));
-	return 0;
-}
-#endif /* CONFIG_DISPLAY_CPUINFO */
-- 
2.19.1



More information about the U-Boot mailing list