[U-Boot] [PATCH] nios2: display altera sysid at startup

Thomas Chou thomas at wytron.com.tw
Wed Dec 16 09:07:47 CET 2015


Display altera sysid at startup, which was once removed during
the move.

Signed-off-by: Thomas Chou <thomas at wytron.com.tw>
---
 arch/nios2/cpu/cpu.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/nios2/cpu/cpu.c b/arch/nios2/cpu/cpu.c
index f6d5cd3..be7f99c 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();
-- 
2.5.0



More information about the U-Boot mailing list