diff options
author | Wealian Liao <whliao@nuvoton.corp-partner.google.com> | 2021-02-19 18:26:59 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-22 23:41:36 +0000 |
commit | 400929c7d00bde06c1cc5668c5bececd045b3d1f (patch) | |
tree | 4916dcd949e665aafd4b6759a3976ebd2cdc8249 | |
parent | ebbf2bfb229141fb4092923860b53c0b91b91d3f (diff) | |
download | chrome-ec-400929c7d00bde06c1cc5668c5bececd045b3d1f.tar.gz |
zephyr: volteer Kohaku: enable watchdog
Enable watchdog on Volteer & kohaku.
BUG=b:176523207, b:177604307
BRANCH=None.
TEST=Trigger watchdog by 'waitms 2000' &&
don't trigger watchdog by 'waitms 1000' on volteer.
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: I59a2031c14725ac8f9ae294e1a5cbfae84ebdab6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2706666
Reviewed-by: Simon Glass <sjg@chromium.org>
Commit-Queue: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | zephyr/projects/kohaku/boards/arm/kohaku/kohaku_defconfig | 6 | ||||
-rw-r--r-- | zephyr/projects/volteer/boards/arm/volteer/volteer_defconfig | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/zephyr/projects/kohaku/boards/arm/kohaku/kohaku_defconfig b/zephyr/projects/kohaku/boards/arm/kohaku/kohaku_defconfig index ed72521e26..9a2d70a37e 100644 --- a/zephyr/projects/kohaku/boards/arm/kohaku/kohaku_defconfig +++ b/zephyr/projects/kohaku/boards/arm/kohaku/kohaku_defconfig @@ -26,6 +26,12 @@ CONFIG_GPIO=y # Clock configuration CONFIG_CLOCK_CONTROL=y +# WATCHDOG configuration +CONFIG_WATCHDOG=y +# Set the delay time for printing panic data. +# 1 cycle is about 32ms. 500ms is about 16 cycles. +CONFIG_WDT_NPCX_DELAY_CYCLES=16 + # PLL configuration CONFIG_CLOCK_NPCX_OSC_CYCLES_PER_SEC=90000000 CONFIG_CLOCK_NPCX_APB1_PRESCALER=6 diff --git a/zephyr/projects/volteer/boards/arm/volteer/volteer_defconfig b/zephyr/projects/volteer/boards/arm/volteer/volteer_defconfig index 7e6360c894..0c73e5a7d2 100644 --- a/zephyr/projects/volteer/boards/arm/volteer/volteer_defconfig +++ b/zephyr/projects/volteer/boards/arm/volteer/volteer_defconfig @@ -26,6 +26,12 @@ CONFIG_GPIO=y # Clock configuration CONFIG_CLOCK_CONTROL=y +# WATCHDOG configuration +CONFIG_WATCHDOG=y +# Set the delay time for printing panic data. +# 1 cycle is about 32ms. 500ms is about 16 cycles. +CONFIG_WDT_NPCX_DELAY_CYCLES=16 + # PLL configuration CONFIG_CLOCK_NPCX_OSC_CYCLES_PER_SEC=90000000 CONFIG_CLOCK_NPCX_APB1_PRESCALER=6 |