diff options
author | Simon Glass <sjg@chromium.org> | 2021-01-07 13:04:17 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-09 05:11:02 +0000 |
commit | f366e0c5db6621684dd042a104d83162731cba04 (patch) | |
tree | f27fe44d843aaa6821993ef9d52627edce7a7dfc /zephyr/shim/include/shimmed_tasks.h | |
parent | b1b5659062f4ba8ff7de2df4dcebd339084a90e6 (diff) | |
download | chrome-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_tasks.h')
-rw-r--r-- | zephyr/shim/include/shimmed_tasks.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/zephyr/shim/include/shimmed_tasks.h b/zephyr/shim/include/shimmed_tasks.h index bc45b37227..5f1dff78f0 100644 --- a/zephyr/shim/include/shimmed_tasks.h +++ b/zephyr/shim/include/shimmed_tasks.h @@ -6,6 +6,10 @@ #ifndef __CROS_EC_SHIMMED_TASKS_H #define __CROS_EC_SHIMMED_TASKS_H +#ifdef CONFIG_HAS_TASK_CHARGER +#define HAS_TASK_CHARGER 1 +#endif /* CONFIG_HAS_TASK_CHARGER */ + #ifdef CONFIG_HAS_TASK_CHIPSET #define HAS_TASK_CHIPSET 1 #endif /* CONFIG_HAS_TASK_CHIPSET */ @@ -27,8 +31,16 @@ #define HAS_TASK_POWERBTN 1 #endif /* CONFIG_HAS_TASK_POWERBTN */ -#ifdef CONFIG_HAS_TASK_CHARGER -#define HAS_TASK_CHARGER 1 -#endif /* CONFIG_HAS_TASK_CHARGER */ +#ifdef CONFIG_HAS_TASK_USB_CHG_P0 +#define HAS_TASK_USB_CHG_P0 1 +#endif /* CONFIG_HAS_TASK_USB_CHG_P0 */ + +#ifdef CONFIG_HAS_TASK_USB_CHG_P1 +#define HAS_TASK_USB_CHG_P1 1 +#endif /* CONFIG_HAS_TASK_USB_CHG_P1 */ + +#ifdef CONFIG_HAS_TASK_USB_CHG_P2 +#define HAS_TASK_USB_CHG_P2 1 +#endif /* CONFIG_HAS_TASK_USB_CHG_P2 */ #endif /* __CROS_EC_SHIMMED_TASKS_H */ |