diff options
author | Alexey Brodkin <abrodkin@synopsys.com> | 2018-10-10 14:03:47 +0300 |
---|---|---|
committer | Alexey Brodkin <abrodkin@synopsys.com> | 2018-10-12 15:14:41 +0300 |
commit | 5b86ca96d03c781f2035c0ecfea526d42f6999f6 (patch) | |
tree | 41a5792bda1b52a9ccd182e090068c86a216e830 /board/synopsys/iot_devkit | |
parent | ba9f56f3d463f9404f41958cefe2765c9a6bddcf (diff) |
iot_dk/hsdk: Implement its own print_cpuinfo()
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>
Diffstat (limited to 'board/synopsys/iot_devkit')
-rw-r--r-- | board/synopsys/iot_devkit/iot_devkit.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/synopsys/iot_devkit/iot_devkit.c b/board/synopsys/iot_devkit/iot_devkit.c index c185d5cdb5..1d848dde03 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 */ |