diff options
author | Sascha Laue <Sascha.Laue@gmx.biz> | 2008-04-01 15:13:03 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-04-13 23:22:34 -0700 |
commit | 3dfd4aab929cccddb63d9ea509967861e1333b52 (patch) | |
tree | 5db394ef61da75a4ff3f5e3c9bdd1ea51f1a14d4 /post/board/lwmon5 | |
parent | 24b448448a917e52806f82660a5c9d47608894fb (diff) | |
download | u-boot-imx-3dfd4aab929cccddb63d9ea509967861e1333b52.zip u-boot-imx-3dfd4aab929cccddb63d9ea509967861e1333b52.tar.gz u-boot-imx-3dfd4aab929cccddb63d9ea509967861e1333b52.tar.bz2 |
Fix watchdog POST for lwmon5
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>
Diffstat (limited to 'post/board/lwmon5')
-rw-r--r-- | post/board/lwmon5/watchdog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/post/board/lwmon5/watchdog.c b/post/board/lwmon5/watchdog.c index 48ff687..899fbfb 100644 --- a/post/board/lwmon5/watchdog.c +++ b/post/board/lwmon5/watchdog.c @@ -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. |