diff options
-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 |