summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/shimmed_task_id.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-21 16:59:04 -0700
committerCommit Bot <commit-bot@chromium.org>2020-12-24 01:37:34 +0000
commit97a2b7b25b87eb4ff95100ef80519782635b9065 (patch)
treeff5faf681c79c8ec0fe0fc3c71d37152bdeb38ee /zephyr/shim/include/shimmed_task_id.h
parentee1449f03969c04e255e394ec07a3ebf3bc3d6e8 (diff)
downloadchrome-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/shim/include/shimmed_task_id.h')
-rw-r--r--zephyr/shim/include/shimmed_task_id.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zephyr/shim/include/shimmed_task_id.h b/zephyr/shim/include/shimmed_task_id.h
index dc7e7f24ff..2918cad216 100644
--- a/zephyr/shim/include/shimmed_task_id.h
+++ b/zephyr/shim/include/shimmed_task_id.h
@@ -19,6 +19,9 @@ typedef uint8_t task_id_t;
*/
#ifndef CONFIG_ZTEST
#define CROS_EC_TASK_LIST \
+ COND_CODE_1(HAS_TASK_CHARGER, \
+ (CROS_EC_TASK(CHARGER, charger_task, 0, \
+ CONFIG_TASK_CHARGER_STACK_SIZE)), ()) \
COND_CODE_1(HAS_TASK_CHIPSET, \
(CROS_EC_TASK(CHIPSET, chipset_task, 0, \
CONFIG_TASK_CHIPSET_STACK_SIZE)), ()) \