nios2: display altera sysid at startup
authorThomas Chou <thomas@wytron.com.tw>
Wed, 16 Dec 2015 08:07:06 +0000 (16:07 +0800)
committerThomas Chou <thomas@wytron.com.tw>
Sat, 19 Dec 2015 01:51:19 +0000 (09:51 +0800)
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>
arch/nios2/cpu/cpu.c

index f6d5cd399a3acea273007dfe0a28b6ff44c5aebb..be7f99c1de4fb7d6e29f9a8bf3fe4336f50681ea 100644 (file)
@@ -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();