summaryrefslogtreecommitdiff
path: root/post
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-28 21:15:46 +0200
commit3e4615ab7ff38781a5dd80d0f49b9af55b4fe0b7 (patch)
treef8a07861f2ed38e937edc393238d9fed9ce381ff /post
parentdd5748bcd669f46aeb6686c1b341323843738ccc (diff)
downloadu-boot-imx-3e4615ab7ff38781a5dd80d0f49b9af55b4fe0b7.zip
u-boot-imx-3e4615ab7ff38781a5dd80d0f49b9af55b4fe0b7.tar.gz
u-boot-imx-3e4615ab7ff38781a5dd80d0f49b9af55b4fe0b7.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> Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'post')
-rw-r--r--post/board/lwmon5/watchdog.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/post/board/lwmon5/watchdog.c b/post/board/lwmon5/watchdog.c
index 16c01be..1246278 100644
--- a/post/board/lwmon5/watchdog.c
+++ b/post/board/lwmon5/watchdog.c
@@ -52,8 +52,9 @@ static void watchdog_magic_write(uint value)
int sysmon1_post_test(int flags)
{
- if (gpio_read_in_bit(CFG_GPIO_SYSMON_STATUS)) {
- /* 3.1. GPIO62 is low
+ if (gpio_read_in_bit(CFG_GPIO_SYSMON_STATUS) == 0) {
+ /*
+ * 3.1. GPIO62 is low
* Assuming system voltage failure.
*/
post_log("Abnormal voltage detected (GPIO62)\n");