diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-29 09:26:04 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-06 19:31:57 +0000 |
commit | 34ffcb52bdb98448fa5cc5c7de18f4f65da6a4f2 (patch) | |
tree | 986cedca018827f07c749c529fc68436e26328d0 /zephyr/Kconfig | |
parent | 75d4c1878d92a47c22abf257a41ee3e66b513b1d (diff) | |
download | chrome-ec-34ffcb52bdb98448fa5cc5c7de18f4f65da6a4f2.tar.gz |
zephyr: Connect HAS_TASK_POWERBTN, PLATFORM_EC_POWER_BUTTON
These options are linked in that we cannot have one without
the other.
Select the powerbtn task automatically if PLATFORM_EC_POWER_BUTTON is
enabled, since that feature cannot work without the task. If
PLATFORM_EC_POWER_BUTTON is not enabled there is no need for the task.
BUG=b:176449230
BRANCH=none
TEST=ninja -C /tmp/z/vol/build-ro menuconfig
Check the operation of HAS_TASK_POWERBTN and PLATFORM_EC_POWER_BUTTON
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I3e6bb2dccb58009ad4f8c4931dbcb43665327a8b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2606575
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/Kconfig')
-rw-r--r-- | zephyr/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig index 171a147f6d..b123f72fda 100644 --- a/zephyr/Kconfig +++ b/zephyr/Kconfig @@ -250,6 +250,7 @@ config PLATFORM_EC_PORT80 config PLATFORM_EC_POWER_BUTTON bool "Enable the power button module" + select HAS_TASK_POWERBTN depends on PLATFORM_EC_HOSTCMD help Enable shimming the power button implementation and related |