summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--com32/modules/kontron_wdt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/com32/modules/kontron_wdt.c b/com32/modules/kontron_wdt.c
index 6d21d7c2..4e1d2535 100644
--- a/com32/modules/kontron_wdt.c
+++ b/com32/modules/kontron_wdt.c
@@ -378,6 +378,10 @@ int main(int argc, const char *argv[]) {
status = kempld_read8(&pld, KEMPLD_WDT_CFG);
/* kick the watchdog if it is already enabled, otherwise start it */
if (status & KEMPLD_WDT_CFG_ENABLE) {
+ /* Maybye the BIOS did setup a first timer
+ * in this case, let's enforce the timeout
+ * to be sure we do have the proper value */
+ kempld_wdt_settimeout(&wdt);
kempld_wdt_keepalive(&wdt);
} else {
ret = kempld_wdt_settimeout(&wdt);