summaryrefslogtreecommitdiff
path: root/post/board
diff options
context:
space:
mode:
authorSascha Laue <Sascha.Laue@gmx.biz>2008-04-01 13:13:03 (GMT)
committerWolfgang Denk <wd@denx.de>2008-04-14 06:22:34 (GMT)
commit3dfd4aab929cccddb63d9ea509967861e1333b52 (patch)
tree5db394ef61da75a4ff3f5e3c9bdd1ea51f1a14d4 /post/board
parent24b448448a917e52806f82660a5c9d47608894fb (diff)
downloadu-boot-3dfd4aab929cccddb63d9ea509967861e1333b52.tar.xz
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')
-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 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.