summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/shimmed_task_id.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-01-07 13:04:17 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-09 05:11:02 +0000
commitf366e0c5db6621684dd042a104d83162731cba04 (patch)
treef27fe44d843aaa6821993ef9d52627edce7a7dfc /zephyr/shim/include/shimmed_task_id.h
parentb1b5659062f4ba8ff7de2df4dcebd339084a90e6 (diff)
downloadchrome-ec-f366e0c5db6621684dd042a104d83162731cba04.tar.gz
zephyr: Add the USB charger tasks
Add these tasks so that we can enable USB charging. For now it is left off since the driver is missing. Move the charger task to the top so that things are in alphabetical order. BUG=b:175434113 BRANCH=none TEST=make BOARD=volteer -j30 build volteer on zephyr Change-Id: Ib1f48438a2b33069624beb2cd9330db475f76333 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2615620 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/shim/include/shimmed_task_id.h')
-rw-r--r--zephyr/shim/include/shimmed_task_id.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/zephyr/shim/include/shimmed_task_id.h b/zephyr/shim/include/shimmed_task_id.h
index 29b6d675b6..3da93e67c9 100644
--- a/zephyr/shim/include/shimmed_task_id.h
+++ b/zephyr/shim/include/shimmed_task_id.h
@@ -19,6 +19,15 @@ typedef uint8_t task_id_t;
*/
#ifndef CONFIG_ZTEST
#define CROS_EC_TASK_LIST \
+ COND_CODE_1(HAS_TASK_USB_CHG_P0, \
+ (CROS_EC_TASK(USB_CHG_P0, usb_charger_task, 0, \
+ CONFIG_TASK_USB_CHG_STACK_SIZE)), ()) \
+ COND_CODE_1(HAS_TASK_USB_CHG_P1, \
+ (CROS_EC_TASK(USB_CHG_P1, usb_charger_task, 0, \
+ CONFIG_TASK_USB_CHG_STACK_SIZE)), ()) \
+ COND_CODE_1(HAS_TASK_USB_CHG_P2, \
+ (CROS_EC_TASK(USB_CHG_P2, usb_charger_task, 0, \
+ CONFIG_TASK_USB_CHG_STACK_SIZE)), ()) \
COND_CODE_1(HAS_TASK_CHARGER, \
(CROS_EC_TASK(CHARGER, charger_task, 0, \
CONFIG_TASK_CHARGER_STACK_SIZE)), ()) \