diff options
author | Yuval Peress <peress@chromium.org> | 2021-04-06 13:16:22 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-07 06:03:59 +0000 |
commit | 93dbb1cd5b95b3a4618cdd4984b6b9a71ce5871a (patch) | |
tree | aa0ba7a8a52868bedef1d0d6afb93c491a59a57d | |
parent | 3bbd79f137d86fe0eedcdd07ae5b4241be823444 (diff) | |
download | chrome-ec-93dbb1cd5b95b3a4618cdd4984b6b9a71ce5871a.tar.gz |
zephyr: kconfig: move timer configs to separate file
Clean up the root Kconfig for Zephyr by moving sub configs to separate
file (Kconfig.timer).
BRANCH=none
BUG=none
TEST=zmake testall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: Ie5987fd413cdc89a1f3f15508def6fdc64d94750
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2808333
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | zephyr/Kconfig | 14 | ||||
-rw-r--r-- | zephyr/Kconfig.watchdog | 16 |
2 files changed, 17 insertions, 13 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig index 5ff2e59a82..3d66e90d48 100644 --- a/zephyr/Kconfig +++ b/zephyr/Kconfig @@ -55,6 +55,7 @@ rsource "Kconfig.temperature" rsource "Kconfig.timer" rsource "Kconfig.throttle_ap" rsource "Kconfig.usbc" +rsource "Kconfig.watchdog" # Define PLATFORM_EC_... options to enable EC features. Each Kconfig should be # matched by a line in zephyr/shim/include/config_chip.h which #defines the @@ -561,17 +562,4 @@ menuconfig PLATFORM_EC_WATCHDOG system) gets starved for CPU time and isn't able to fire its HOOK_TICK event. -if PLATFORM_EC_WATCHDOG - -config PLATFORM_EC_WATCHDOG_PERIOD_MS - int "Watchdog timeout in ms" - default 1600 - help - Set the timeout of the watchdog timer. The watchdog timer reboots - the system if no one reloads the watchdog timer before the timeout. - The interval between reloads of the watchdog timer should be less than - half of the watchdog period. - -endif # PLATFORM_EC_WATCHDOG - endif # PLATFORM_EC diff --git a/zephyr/Kconfig.watchdog b/zephyr/Kconfig.watchdog new file mode 100644 index 0000000000..57951b6f12 --- /dev/null +++ b/zephyr/Kconfig.watchdog @@ -0,0 +1,16 @@ +# Copyright 2021 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +if PLATFORM_EC_WATCHDOG + +config PLATFORM_EC_WATCHDOG_PERIOD_MS + int "Watchdog timeout in ms" + default 1600 + help + Set the timeout of the watchdog timer. The watchdog timer reboots + the system if no one reloads the watchdog timer before the timeout. + The interval between reloads of the watchdog timer should be less than + half of the watchdog period. + +endif # PLATFORM_EC_WATCHDOG |