diff options
author | Shawn Nematbakhsh <shawnn@google.com> | 2015-11-10 14:21:56 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-11-11 08:05:40 -0800 |
commit | b234b9ecc7d23b6f33e452d97158326afaa4de35 (patch) | |
tree | adc632c66654626ff5844026b90f89e1a00431d3 /board/twinkie | |
parent | 92386dd91c9967f7c23941e8bc6b415fc37b3f1f (diff) | |
download | chrome-ec-b234b9ecc7d23b6f33e452d97158326afaa4de35.tar.gz |
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 <shawnn@chromium.org>
Change-Id: Ib833de0dfaa9490f4de8efb08d2cdddd86d57896
Reviewed-on: https://chromium-review.googlesource.com/311785
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/twinkie')
-rw-r--r-- | board/twinkie/board.h | 2 | ||||
-rw-r--r-- | board/twinkie/sink.tasklist | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/board/twinkie/board.h b/board/twinkie/board.h index e3c150fa34..72f69972cc 100644 --- a/board/twinkie/board.h +++ b/board/twinkie/board.h @@ -34,7 +34,7 @@ #define CONFIG_USBC_SNIFFER_HEADER_V1 #define CONFIG_HW_CRC -#ifndef HAS_TASK_PD /* PD sniffer mode */ +#ifndef HAS_TASK_PD_C0 /* PD sniffer mode */ #undef CONFIG_DMA_DEFAULT_HANDLERS #define CONFIG_USB_PD_TX_PHY_ONLY /* override the comparator interrupt handler */ diff --git a/board/twinkie/sink.tasklist b/board/twinkie/sink.tasklist index 600118314f..aaf83ab95e 100644 --- a/board/twinkie/sink.tasklist +++ b/board/twinkie/sink.tasklist @@ -26,4 +26,4 @@ #define CONFIG_TASK_LIST \ TASK_ALWAYS(HOOKS, hook_task, NULL, 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) |