Skip to content
Snippets Groups Projects
Commit 3e4615ab authored by Sascha Laue's avatar Sascha Laue Committed by Wolfgang Denk
Browse files

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: default avatarSascha Laue <leglas0@legpc180.leg.liebherr.i>
Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
parent dd5748bc
No related branches found
No related tags found
No related merge requests found
...@@ -52,8 +52,9 @@ static void watchdog_magic_write(uint value) ...@@ -52,8 +52,9 @@ static void watchdog_magic_write(uint value)
int sysmon1_post_test(int flags) 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 /*
* 3.1. GPIO62 is low
* Assuming system voltage failure. * Assuming system voltage failure.
*/ */
post_log("Abnormal voltage detected (GPIO62)\n"); post_log("Abnormal voltage detected (GPIO62)\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment