]> git.sur5r.net Git - u-boot/commitdiff
Fix watchdog POST for lwmon5
authorSascha Laue <Sascha.Laue@gmx.biz>
Tue, 1 Apr 2008 13:13:03 +0000 (15:13 +0200)
committerWolfgang Denk <wd@denx.de>
Mon, 14 Apr 2008 06:22:34 +0000 (23:22 -0700)
If the hardware watchdog detects a voltage error, the watchdog sets
GPIO62 to low. The watchdog POST has to detect this low level.

Signed-off-by: Sascha Laue <leglas0@legpc180.leg.liebherr.i>
post/board/lwmon5/watchdog.c

index 48ff68746074d002628badc16b7dff1106d92269..899fbfbbd7191c797ecc1608241c88808f456f61 100644 (file)
@@ -55,7 +55,7 @@ static void watchdog_magic_write(uint value)
 
 int sysmon1_post_test(int flags)
 {
-       if (gpio_read_in_bit(CFG_GPIO_SYSMON_STATUS)) {
+       if (gpio_read_in_bit(CFG_GPIO_SYSMON_STATUS) == 0) {
                /*
                 * 3.1. GPIO62 is low
                 * Assuming system voltage failure.