Skip to contentSkip to conversation

Author: Yuri Tikhonov <[email protected]>

U-Boot-Users Wolfgang Denk 1 participant 1 message Mar 22, 2008

lore
Share & tools
lore
#0 lore raw

Add test for DPIC_SYS_ERROR_REG to be zero in the LWMON5 dsPIC POST.

---

post/board/lwmon5/dspic.c +2 -1
index 65b96bc..dbaa074 100644
@@ -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;