summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Laue <Sascha.Laue@gmx.biz>2008-04-01 15:13:03 +0200
committerWolfgang Denk <wd@denx.de>2008-04-13 23:22:34 -0700
commit3dfd4aab929cccddb63d9ea509967861e1333b52 (patch)
tree5db394ef61da75a4ff3f5e3c9bdd1ea51f1a14d4
parent24b448448a917e52806f82660a5c9d47608894fb (diff)
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>
-rw-r--r--post/board/lwmon5/watchdog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/post/board/lwmon5/watchdog.c b/post/board/lwmon5/watchdog.c
index 48ff6874607..899fbfbbd71 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.