diff options
Diffstat (limited to 'chip/ish/watchdog.c')
-rw-r--r-- | chip/ish/watchdog.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chip/ish/watchdog.c b/chip/ish/watchdog.c index fd0ebcf247..d9a9d84008 100644 --- a/chip/ish/watchdog.c +++ b/chip/ish/watchdog.c @@ -46,6 +46,16 @@ int watchdog_init(void) return EC_SUCCESS; } +void watchdog_enable(void) +{ + WDT_CONTROL |= WDT_CONTROL_ENABLE_BIT; +} + +void watchdog_disable(void) +{ + WDT_CONTROL &= ~WDT_CONTROL_ENABLE_BIT; +} + /* Parameters are pushed by hardware, we only care about %EIP */ __attribute__ ((noreturn)) void watchdog_warning(uint32_t errorcode, |