diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-21 16:59:04 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-24 01:37:34 +0000 |
commit | 97a2b7b25b87eb4ff95100ef80519782635b9065 (patch) | |
tree | ff5faf681c79c8ec0fe0fc3c71d37152bdeb38ee /zephyr/Kconfig.tasks | |
parent | ee1449f03969c04e255e394ec07a3ebf3bc3d6e8 (diff) | |
download | chrome-ec-97a2b7b25b87eb4ff95100ef80519782635b9065.tar.gz |
zephyr: Enable the charger task
This supports monitoring and charging the battery. Enable it for
Zephyr.
BUG=b:175248556
BRANCH=none
TEST=build and run zephyr on volteer
No visible change, except more code is compiled in
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I21ff976ba2f5de6e8f069e30028770eda408041a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2600229
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.tasks')
-rw-r--r-- | zephyr/Kconfig.tasks | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/zephyr/Kconfig.tasks b/zephyr/Kconfig.tasks index 9a2a6d94a0..35f83a85c2 100644 --- a/zephyr/Kconfig.tasks +++ b/zephyr/Kconfig.tasks @@ -33,3 +33,23 @@ config TASK_POWERBTN_STACK_SIZE The stack size of the power button task. endif # HAS_TASK_POWERBTN + +config HAS_TASK_CHARGER + bool "Whether or not the charger task should be run." + help + This turns on the charger task. This deals with monitoring the + battery to make sure it is present and is responding properly to + requests. If the battery is not full, it enables charging from a + suitable power source. + +if HAS_TASK_CHARGER + +config TASK_CHARGER_STACK_SIZE + hex "charger task stack size" + default 0x400 # EC uses VENTI_TASK_STACK_SIZE which is 896 + help + The stack size of the charger task. + + See b/176180736 for checking these stack sizes. + +endif # HAS_TASK_CHARGER |