summaryrefslogtreecommitdiff
path: root/post/board
diff options
context:
space:
mode:
authorYuri Tikhonov <yur@emcraft.com>2008-03-21 09:18:40 +0100
committerWolfgang Denk <wd@denx.de>2008-03-22 23:26:08 +0100
commit86aea3eaefa248ffb9328e2b50c64720489cdbeb (patch)
tree3e1b7b85c65dae19d519c244b5afa9c8adbd88e5 /post/board
parentb73a19e1609d0f705cbab8014ca17aefe89e4c76 (diff)
downloadu-boot-imx-86aea3eaefa248ffb9328e2b50c64720489cdbeb.zip
u-boot-imx-86aea3eaefa248ffb9328e2b50c64720489cdbeb.tar.gz
u-boot-imx-86aea3eaefa248ffb9328e2b50c64720489cdbeb.tar.bz2
LWMON5: fix dsPIC POST
Add test for DPIC_SYS_ERROR_REG to be zero in the LWMON5 dsPIC POST. Signed-off-by: Yuri Tikhonov <yur@emcraft.com> ---
Diffstat (limited to 'post/board')
-rw-r--r--post/board/lwmon5/dspic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/post/board/lwmon5/dspic.c b/post/board/lwmon5/dspic.c
index 65b96bc..dbaa074 100644
--- a/post/board/lwmon5/dspic.c
+++ b/post/board/lwmon5/dspic.c
@@ -97,8 +97,9 @@ int dspic_post_test(int flags)
if (data == -1) {
post_log("dsPIC : failed read system error\n");
ret = 1;
- } else {
+ } else if (data != 0) {
post_log("dsPIC SYS-ERROR code: 0x%04X\n", data);
+ ret = 1;
}
return ret;