public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] nios2: display altera sysid at startup
@ 2015-12-16  8:07 Thomas Chou
  2015-12-16 10:25 ` Marek Vasut
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Chou @ 2015-12-16  8:07 UTC (permalink / raw)
  To: u-boot

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

Signed-off-by: Thomas Chou <thomas@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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-12-16 14:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-16  8:07 [U-Boot] [PATCH] nios2: display altera sysid at startup Thomas Chou
2015-12-16 10:25 ` Marek Vasut
2015-12-16 13:10   ` Thomas Chou
2015-12-16 13:23     ` Marek Vasut
2015-12-16 13:44       ` Thomas Chou
2015-12-16 14:01         ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox