]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
iot_dk/hsdk: Implement its own print_cpuinfo()
authorAlexey Brodkin <abrodkin@synopsys.com>
Wed, 10 Oct 2018 11:03:47 +0000 (14:03 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Fri, 12 Oct 2018 12:14:41 +0000 (15:14 +0300)
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 <abrodkin@synopsys.com>
board/synopsys/hsdk/hsdk.c
board/synopsys/iot_devkit/iot_devkit.c

index fb4286f71b6e9fc74458857d8824fee672051062..4f46d2e25be9ec05cce512cbabd8cf84aa332ab5 100644 (file)
@@ -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 */
index c185d5cdb5cc3819976353bebe0d0570e77aba13..1d848dde03beda46d062e04659e3a505da2c115c 100644 (file)
@@ -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 */