summaryrefslogtreecommitdiff
path: root/post/board/lwmon5/dspic.c
diff options
context:
space:
mode:
authorYuri Tikhonov <yur@pollux.denx.de>2008-02-04 17:09:55 +0100
committerWolfgang Denk <wd@denx.de>2008-03-18 21:59:23 +0100
commit603f194e5ad81bb2ef42d6d8aaa74de175bcb411 (patch)
treee524111c49eddbab623c0fbe02a2b709ac99c8a0 /post/board/lwmon5/dspic.c
parente262efe35742c1ad4b0966ff501efc26f34a0aec (diff)
downloadu-boot-imx-603f194e5ad81bb2ef42d6d8aaa74de175bcb411.zip
u-boot-imx-603f194e5ad81bb2ef42d6d8aaa74de175bcb411.tar.gz
u-boot-imx-603f194e5ad81bb2ef42d6d8aaa74de175bcb411.tar.bz2
Some fixes to dspic, fpga, and gdc post tests for lwmon5.
Disable external watch-dog for now. Signed-off-by: Dmitry Rakhchev <rda@emcraft.com> Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
Diffstat (limited to 'post/board/lwmon5/dspic.c')
-rw-r--r--post/board/lwmon5/dspic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/post/board/lwmon5/dspic.c b/post/board/lwmon5/dspic.c
index e8fed89..f1c9c15 100644
--- a/post/board/lwmon5/dspic.c
+++ b/post/board/lwmon5/dspic.c
@@ -94,9 +94,9 @@ int dspic_post_test(int flags)
}
data = dspic_read(DSPIC_SYS_ERROR_REG);
- if (data != 0) ret = 1;
if (data == -1) {
post_log("dsPIC : failed read system error\n");
+ ret = 1;
} else {
post_log("dsPIC SYS-ERROR code: 0x%04X\n", data);
}