diff options
Diffstat (limited to 'chip/it83xx/system.c')
-rw-r--r-- | chip/it83xx/system.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chip/it83xx/system.c b/chip/it83xx/system.c index 144d75c35c..537455d4b9 100644 --- a/chip/it83xx/system.c +++ b/chip/it83xx/system.c @@ -119,6 +119,10 @@ void chip_pre_init(void) { /* bit4, enable debug mode through SMBus */ IT83XX_SMB_SLVISELR &= ~BIT(4); + + if (IS_ENABLED(IT83XX_ETWD_HW_RESET_SUPPORT)) + /* System triggers a soft reset by default (command: reboot). */ + IT83XX_GCTRL_ETWDUARTCR &= ~ETWD_HW_RST_EN; } #define BRAM_VALID_MAGIC 0x4252414D /* "BRAM" */ @@ -194,7 +198,7 @@ void system_reset(int flags) /* bit0: enable watchdog hardware reset. */ #ifdef IT83XX_ETWD_HW_RESET_SUPPORT if (flags & SYSTEM_RESET_HARD) - IT83XX_GCTRL_ETWDUARTCR |= BIT(0); + IT83XX_GCTRL_ETWDUARTCR |= ETWD_HW_RST_EN; #endif /* * Writing invalid key to watchdog module triggers a soft or hardware |