summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2015-12-16 16:07:06 +0800
committerThomas Chou <thomas@wytron.com.tw>2015-12-19 09:51:19 +0800
commit4909f0e16ad85b9bea85d1519884f67e56b7e0cf (patch)
tree658ec9818dae1bedb9629648adb18d95a288eae1
parentaeea8754ffaef081336ab81ffc3b4adcdd350145 (diff)
nios2: display altera sysid at startup
Display altera sysid at startup, which was once removed during the move. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Marek Vasut <marex@denx.de>
-rw-r--r--arch/nios2/cpu/cpu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/nios2/cpu/cpu.c b/arch/nios2/cpu/cpu.c
index f6d5cd399a..be7f99c1de 100644
--- a/arch/nios2/cpu/cpu.c
+++ b/arch/nios2/cpu/cpu.c
@@ -21,6 +21,14 @@ int print_cpuinfo(void)
}
#endif /* CONFIG_DISPLAY_CPUINFO */
+#ifdef CONFIG_ALTERA_SYSID
+int checkboard(void)
+{
+ display_sysid();
+ return 0;
+}
+#endif
+
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
disable_interrupts();