summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dd5748b)
raw | patch | inline | side by side (parent: dd5748b)
author | Sascha Laue <Sascha.Laue@gmx.biz> | |
Tue, 1 Apr 2008 13:13:03 +0000 (15:13 +0200) | ||
committer | Wolfgang Denk <wd@denx.de> | |
Mon, 28 Apr 2008 19:15:46 +0000 (21:15 +0200) |
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>
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>
post/board/lwmon5/watchdog.c | patch | blob | history |
index 16c01bee4383af554fdcdb6eb28da75adf709432..1246278a58195484f28f06fb09cd6863f6bfe00f 100644 (file)
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");