summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-01-19 09:46:49 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-01-19 10:58:48 +0100
commitc795b0d8f143a52e0b7196c6e353b381ac04f8ae (patch)
treea2df26a0f113f87d9d546c151f79a0f3d77ba705 /src
parentcdcb9b0885cdb2ca2a212536ab68acc2e9bc7fad (diff)
downloadopenocd_libswd-c795b0d8f143a52e0b7196c6e353b381ac04f8ae.tar.gz
openocd_libswd-c795b0d8f143a52e0b7196c6e353b381ac04f8ae.tar.bz2
openocd_libswd-c795b0d8f143a52e0b7196c6e353b381ac04f8ae.tar.xz
openocd_libswd-c795b0d8f143a52e0b7196c6e353b381ac04f8ae.zip
zy1000: print out PCB revision upon boot
Simplify debugging a bit. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src')
-rw-r--r--src/ecosboard.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ecosboard.c b/src/ecosboard.c
index de2a42cc..2e73585d 100644
--- a/src/ecosboard.c
+++ b/src/ecosboard.c
@@ -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)