summaryrefslogtreecommitdiff
path: root/board/brya/ec.tasklist
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2021-02-16 18:39:17 -0800
committerCommit Bot <commit-bot@chromium.org>2021-03-10 20:00:23 +0000
commit632d1e77e33f7f07f1e48585e03eb35525166210 (patch)
tree30b86bcb7ad44860b10aeea23487f0d2d0af90e9 /board/brya/ec.tasklist
parentee972e4f32d3b19ed9a6104459ab420c4e8782ec (diff)
downloadchrome-ec-632d1e77e33f7f07f1e48585e03eb35525166210.tar.gz
brya: Add USB-C support
This adds the USB-C support subsystem code. BRANCH=none BUG=b:173575131 TEST=with reset of CQ-Depend patches, brya boots to AP Cq-Depend: chromium:2700317 Change-Id: I9181b13c7ef4bb2f6bb93bd0d16369848779c198 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2700315 Reviewed-by: Furquan Shaikh <furquan@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'board/brya/ec.tasklist')
-rw-r--r--board/brya/ec.tasklist13
1 files changed, 12 insertions, 1 deletions
diff --git a/board/brya/ec.tasklist b/board/brya/ec.tasklist
index 4065a63bde..dda8729741 100644
--- a/board/brya/ec.tasklist
+++ b/board/brya/ec.tasklist
@@ -5,13 +5,24 @@
/*
* See CONFIG_TASK_LIST in config.h for details.
+ *
+ * USB_CHG_Px tasks must be contiguous (see USB_CHG_PORT_TO_TASK_ID(x)).
+ * PD_Cx tasks must be contiguous (see PD_PORT_TO_TASK_ID(x))
*/
#define CONFIG_TASK_LIST \
TASK_ALWAYS(HOOKS, hook_task, NULL, LARGER_TASK_STACK_SIZE) \
+ TASK_ALWAYS(USB_CHG_P0, usb_charger_task, 0, TASK_STACK_SIZE) \
+ TASK_ALWAYS(USB_CHG_P1, usb_charger_task, 0, TASK_STACK_SIZE) \
+ TASK_ALWAYS(USB_CHG_P2, usb_charger_task, 0, TASK_STACK_SIZE) \
TASK_NOTEST(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \
TASK_NOTEST(CHIPSET, chipset_task, NULL, LARGER_TASK_STACK_SIZE) \
TASK_ALWAYS(HOSTCMD, host_command_task, NULL, LARGER_TASK_STACK_SIZE) \
TASK_ALWAYS(CONSOLE, console_task, NULL, VENTI_TASK_STACK_SIZE) \
TASK_ALWAYS(POWERBTN, power_button_task, NULL, LARGER_TASK_STACK_SIZE) \
- TASK_NOTEST(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE)
+ TASK_NOTEST(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \
+ TASK_ALWAYS(PD_C0, pd_task, NULL, VENTI_TASK_STACK_SIZE) \
+ TASK_ALWAYS(PD_C1, pd_task, NULL, VENTI_TASK_STACK_SIZE) \
+ TASK_ALWAYS(PD_C2, pd_task, NULL, VENTI_TASK_STACK_SIZE) \
+ TASK_ALWAYS(PD_INT_C0, pd_shared_alert_task, (BIT(2) | BIT(0)), TASK_STACK_SIZE) \
+ TASK_ALWAYS(PD_INT_C1, pd_interrupt_handler_task, 1, TASK_STACK_SIZE)