Skip to content

Commit

Permalink
Fix watchdog POST for lwmon5
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Sascha Laue authored and wdenx committed Apr 14, 2008
1 parent 24b4484 commit 3dfd4aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post/board/lwmon5/watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3dfd4aa

Please sign in to comment.