summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.battery
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-29 09:26:04 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-06 19:32:03 +0000
commitfe3129c6884eaf2c7c72eb71a5ac387b768fcc0b (patch)
tree7b87be8c8b6ee64eb62be7d06b8dbe56392c5146 /zephyr/Kconfig.battery
parent34ffcb52bdb98448fa5cc5c7de18f4f65da6a4f2 (diff)
downloadchrome-ec-fe3129c6884eaf2c7c72eb71a5ac387b768fcc0b.tar.gz
zephyr: Connect HAS_TASK_CHARGER and PLATFORM_EC_BATTERY
These options are linked in that we cannot have one without the other. Select the charger task automatically if PLATFORM_EC_BATTERY is enabled, since that feature cannot work without the task. If PLATFORM_EC_BATTERY 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_CHARGER and PLATFORM_EC_BATTERY Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: I14ada8716053649ac13ea12a7b06c2ae1702df42 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2606576 Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.battery')
-rw-r--r--zephyr/Kconfig.battery1
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/Kconfig.battery b/zephyr/Kconfig.battery
index acaa994175..50d145de04 100644
--- a/zephyr/Kconfig.battery
+++ b/zephyr/Kconfig.battery
@@ -4,6 +4,7 @@
menuconfig PLATFORM_EC_BATTERY
bool "Battery support"
+ select HAS_TASK_CHARGER
help
Enables battery support on the board. Requires selection of a battery
and a charger IC.