From b234b9ecc7d23b6f33e452d97158326afaa4de35 Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Tue, 10 Nov 2015 14:21:56 -0800 Subject: pd: Cleanup PD port-to-task macros Cleanup our port-to-task and task-to-port macros to allow cleanly adding a third port. BUG=chromium:554243 BRANCH=None TEST=Manual on glados / glados_pd. Verify that both USB-C ports are functional for charging. Signed-off-by: Shawn Nematbakhsh Change-Id: Ib833de0dfaa9490f4de8efb08d2cdddd86d57896 Reviewed-on: https://chromium-review.googlesource.com/311785 Commit-Ready: Shawn N Tested-by: Shawn N Reviewed-by: Alec Berg Reviewed-by: Vincent Palatin --- board/ryu/board.c | 2 +- board/ryu/ec.tasklist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'board/ryu') diff --git a/board/ryu/board.c b/board/ryu/board.c index e199931cdd..44cc2db069 100644 --- a/board/ryu/board.c +++ b/board/ryu/board.c @@ -65,7 +65,7 @@ static struct ec_response_host_event_status host_event_status __aligned(4); void vbus_evt(enum gpio_signal signal) { usb_charger_vbus_change(0, gpio_get_level(signal)); - task_wake(TASK_ID_PD); + task_wake(TASK_ID_PD_C0); } void usb_evt(enum gpio_signal signal) diff --git a/board/ryu/ec.tasklist b/board/ryu/ec.tasklist index 9d49b2c126..b2ea821de6 100644 --- a/board/ryu/ec.tasklist +++ b/board/ryu/ec.tasklist @@ -26,4 +26,4 @@ TASK_NOTEST(CHIPSET, chipset_task, NULL, LARGER_TASK_STACK_SIZE) \ TASK_NOTEST(HOSTCMD, host_command_task, NULL, VENTI_TASK_STACK_SIZE) \ TASK_ALWAYS(CONSOLE, console_task, NULL, LARGER_TASK_STACK_SIZE) \ - TASK_ALWAYS(PD, pd_task, NULL, LARGER_TASK_STACK_SIZE) + TASK_ALWAYS(PD_C0, pd_task, NULL, LARGER_TASK_STACK_SIZE) -- cgit v1.2.1