From 400929c7d00bde06c1cc5668c5bececd045b3d1f Mon Sep 17 00:00:00 2001 From: Wealian Liao Date: Fri, 19 Feb 2021 18:26:59 +0800 Subject: 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 Change-Id: I59a2031c14725ac8f9ae294e1a5cbfae84ebdab6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2706666 Reviewed-by: Simon Glass Commit-Queue: Simon Glass Tested-by: Simon Glass --- zephyr/projects/kohaku/boards/arm/kohaku/kohaku_defconfig | 6 ++++++ zephyr/projects/volteer/boards/arm/volteer/volteer_defconfig | 6 ++++++ 2 files changed, 12 insertions(+) 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 -- cgit v1.2.1