diff options
author | Yuval Peress <peress@chromium.org> | 2021-04-06 13:13:41 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-07 06:03:53 +0000 |
commit | 3bbd79f137d86fe0eedcdd07ae5b4241be823444 (patch) | |
tree | d4a9bde7943b3a08ce71d22bb4db3dc0ebf239f1 | |
parent | 7cfebd9092bb2b8f36187bcd482208668dcc3a65 (diff) | |
download | chrome-ec-3bbd79f137d86fe0eedcdd07ae5b4241be823444.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: I11a4c10d19d23aa46f53ea6676dac637f1cd85a2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2808152
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | zephyr/Kconfig | 48 | ||||
-rw-r--r-- | zephyr/Kconfig.timer | 50 |
2 files changed, 51 insertions, 47 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig index 1f7c31ba7c..5ff2e59a82 100644 --- a/zephyr/Kconfig +++ b/zephyr/Kconfig @@ -52,6 +52,7 @@ rsource "Kconfig.stacks" rsource "Kconfig.system" rsource "Kconfig.tasks" rsource "Kconfig.temperature" +rsource "Kconfig.timer" rsource "Kconfig.throttle_ap" rsource "Kconfig.usbc" @@ -488,53 +489,6 @@ menuconfig PLATFORM_EC_TIMER This option is needed by many features in the EC. Disabling it will likely cause build errors. -if PLATFORM_EC_TIMER - -config PLATFORM_EC_CONSOLE_CMD_GETTIME - bool "Console command: gettime" - default y - help - Enable the "gettime" command. This shows the current time (in - microseconds since boot) in both hex and in decimal converted to - seconds. For example: - - Time: 0x0000000002706a62 = 40.921698 s - - -config PLATFORM_EC_CONSOLE_CMD_TIMERINFO - bool "Console command: timerinfo" - default y - help - Enable the "timerinfo" command which shows the current time (in - microseconds and seconds since boot), the deadline (next time the EC - needs to wake up) and a list of active timers along with when they - will next fire. - - Example: - - Time: 0x0000000002706a62 us, 40.921698 s - Deadline: 0x000000000270774d -> 0.003307 s from now - Active timers: - Tsk 1 0x000000000271db8f -> 0.094509 - Tsk 4 0x00000000027396b3 -> 0.207953 - Tsk 13 0x00000000027133a1 -> 0.051519 - - -config PLATFORM_EC_CONSOLE_CMD_WAITMS - bool "Console command: waitms" - default y - help - Enable the "waitms" command. This waits for a given number of - milliseconds. For example: - - waitms 100 - - waits for 100ms. Note that long waits can introduce problems since - it stops the EC from executing its normal tasks. For example, a - two-second wait can cause the EC to reset. - -endif # PLATFORM_EC_TIMER - config PLATFORM_EC_VBOOT_HASH bool "Host command: EC_CMD_VBOOT_HASH" depends on PLATFORM_EC_HOSTCMD diff --git a/zephyr/Kconfig.timer b/zephyr/Kconfig.timer new file mode 100644 index 0000000000..5b615961eb --- /dev/null +++ b/zephyr/Kconfig.timer @@ -0,0 +1,50 @@ +# 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_TIMER + +config PLATFORM_EC_CONSOLE_CMD_GETTIME + bool "Console command: gettime" + default y + help + Enable the "gettime" command. This shows the current time (in + microseconds since boot) in both hex and in decimal converted to + seconds. For example: + + Time: 0x0000000002706a62 = 40.921698 s + + +config PLATFORM_EC_CONSOLE_CMD_TIMERINFO + bool "Console command: timerinfo" + default y + help + Enable the "timerinfo" command which shows the current time (in + microseconds and seconds since boot), the deadline (next time the EC + needs to wake up) and a list of active timers along with when they + will next fire. + + Example: + + Time: 0x0000000002706a62 us, 40.921698 s + Deadline: 0x000000000270774d -> 0.003307 s from now + Active timers: + Tsk 1 0x000000000271db8f -> 0.094509 + Tsk 4 0x00000000027396b3 -> 0.207953 + Tsk 13 0x00000000027133a1 -> 0.051519 + + +config PLATFORM_EC_CONSOLE_CMD_WAITMS + bool "Console command: waitms" + default y + help + Enable the "waitms" command. This waits for a given number of + milliseconds. For example: + + waitms 100 + + waits for 100ms. Note that long waits can introduce problems since + it stops the EC from executing its normal tasks. For example, a + two-second wait can cause the EC to reset. + +endif # PLATFORM_EC_TIMER |