]> git.sur5r.net Git - openocd/commitdiff
zy1000: print out PCB revision upon boot
authorØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 19 Jan 2010 08:46:49 +0000 (09:46 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 19 Jan 2010 09:58:48 +0000 (10:58 +0100)
Simplify debugging a bit.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/ecosboard.c

index de2a42ccaab25924d86bf8b1bab75e4a61d2a4f9..2e73585d0bedfb7f591118961ef80fd5df767182 100644 (file)
@@ -956,7 +956,11 @@ int main(int argc, char *argv[])
 
        diag_init_putc(_zylinjtag_diag_write_char);
        // We want this in the log.
-       diag_printf("Zylin ZY1000.\n");
+#ifdef CYGPKG_HAL_NIOS2
+       diag_printf("Zylin ZY1000 PCB revc.\n");
+#else
+       diag_printf("Zylin ZY1000 PCB revb.\n");
+#endif
 
        err = mount("", "/ram", "ramfs");
        if (err < 0)