summaryrefslogtreecommitdiff
path: root/chip/npcx/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/npcx/system.c')
-rw-r--r--chip/npcx/system.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/chip/npcx/system.c b/chip/npcx/system.c
index e247989693..bac303afa0 100644
--- a/chip/npcx/system.c
+++ b/chip/npcx/system.c
@@ -44,9 +44,7 @@
void system_watchdog_reset(void)
{
/* Unlock & stop watchdog registers */
- NPCX_WDSDM = 0x87;
- NPCX_WDSDM = 0x61;
- NPCX_WDSDM = 0x63;
+ watchdog_stop_and_unlock();
/* Reset TWCFG */
NPCX_TWCFG = 0;
@@ -493,9 +491,7 @@ void __enter_hibernate(uint32_t seconds, uint32_t microseconds)
CLEAR_BIT(NPCX_ITCTS(ITIM_WDG_NO), NPCX_ITCTS_ITEN);
/* Unlock & stop watchdog */
- NPCX_WDSDM = 0x87;
- NPCX_WDSDM = 0x61;
- NPCX_WDSDM = 0x63;
+ watchdog_stop_and_unlock();
/* Initialize watchdog */
NPCX_TWCFG = 0; /* Select T0IN clock as watchdog prescaler clock */