summaryrefslogtreecommitdiff
path: root/zephyr
diff options
context:
space:
mode:
authorRuibin Chang <Ruibin.Chang@ite.com.tw>2021-06-07 16:39:53 +0800
committerCommit Bot <commit-bot@chromium.org>2021-06-09 22:02:15 +0000
commitb405c16d3362cf9e213aadef23247239b3f35ff5 (patch)
tree55cf8601c225a60f2fade1c411dc6a8beba75f61 /zephyr
parent62d64ec804140d35f67af22a8f63e767a50b05c9 (diff)
downloadchrome-ec-b405c16d3362cf9e213aadef23247239b3f35ff5.tar.gz
zephyr: enable watchdog config
Enable watchdog config on board it8xxx2_evb and hayato. BUG=b:187190711 BRANCH=none TEST=on it8xxx2_evb, 1.console cmd "waitms 1500": print message and not reset 21-05-20 13:38:06.302 --- UART initialized after reboot --- 21-05-20 13:38:06.315 [Image: RO, it8xxx2_evb_zephyr_v2.0.8855-5b 2021-05-20 13] 21-05-20 13:38:06.333 [Reset cause: unknown] 21-05-20 13:38:06.340 ec wdt init 21-05-20 13:38:07.453 Watchdog deadline is close! 21-05-20 13:38:07.851 [1.569641 event set 0x0000000000002000] 21-05-20 13:38:07.869 [1.581176 hostcmd init 0x0000000000002000] 21-05-20 13:38:07.954 uart:~$ 2.console cmd "waitms 1601": print message and reset 21-05-20 13:41:33.908 --- UART initialized after reboot --- 21-05-20 13:41:33.919 [Image: RO, it8xxx2_evb_zephyr_v2.0.8855+5b 2021-05-20 13] 21-05-20 13:41:33.935 [Reset cause: unknown] 21-05-20 13:41:33.942 ec wdt init 21-05-20 13:41:35.055 Watchdog deadline is close! 21-05-20 13:41:35.560 *** Booting Zephyr OS build zephyr -v2.5.0-87-ga0c36e043cf* Cq-Depend: chromium:2936162 Change-Id: Ia465951d71043a469ed78d4089dfb6af30c5999e Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2905171 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr')
-rw-r--r--zephyr/projects/asurada/boards/riscv/asurada/asurada_defconfig4
-rw-r--r--zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig3
2 files changed, 6 insertions, 1 deletions
diff --git a/zephyr/projects/asurada/boards/riscv/asurada/asurada_defconfig b/zephyr/projects/asurada/boards/riscv/asurada/asurada_defconfig
index 75e317fd66..2a0afafe9a 100644
--- a/zephyr/projects/asurada/boards/riscv/asurada/asurada_defconfig
+++ b/zephyr/projects/asurada/boards/riscv/asurada/asurada_defconfig
@@ -77,6 +77,10 @@ CONFIG_CROS_SHI_IT8XXX2=y
# Timer configuration
CONFIG_ITE_IT8XXX2_TIMER=y
+# WATCHDOG configuration
+CONFIG_WATCHDOG=y
+CONFIG_WDT_ITE_WARNING_LEADING_TIME_MS=500
+
# Code RAM base for IT8XXX2
CONFIG_CROS_EC_PROGRAM_MEMORY_BASE=0x80000000
CONFIG_CROS_EC_RAM_BASE=0x80100000
diff --git a/zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig b/zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig
index 5e6a7677f9..f55f1cf1e4 100644
--- a/zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig
+++ b/zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig
@@ -30,7 +30,8 @@ CONFIG_GPIO_ITE_IT8XXX2=y
CONFIG_CLOCK_CONTROL=y
# WATCHDOG configuration
-CONFIG_WATCHDOG=n
+CONFIG_WATCHDOG=y
+CONFIG_WDT_ITE_WARNING_LEADING_TIME_MS=500
# I2C Controller
CONFIG_I2C_ITE_IT8XXX2=y