summaryrefslogtreecommitdiff
path: root/post/board
diff options
context:
space:
mode:
authorYuri Tikhonov <yur@emcraft.com>2008-03-21 08:18:40 (GMT)
committerWolfgang Denk <wd@denx.de>2008-03-22 22:26:08 (GMT)
commit86aea3eaefa248ffb9328e2b50c64720489cdbeb (patch)
tree3e1b7b85c65dae19d519c244b5afa9c8adbd88e5 /post/board
parentb73a19e1609d0f705cbab8014ca17aefe89e4c76 (diff)
downloadu-boot-86aea3eaefa248ffb9328e2b50c64720489cdbeb.tar.xz
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;