summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-07-10 14:59:54 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-07-11 09:32:56 +0000
commit79195818caeff76a6eb3a3d4991b095920b55e33 (patch)
tree576b385db175fd0010470ba762dbf647e9aeab1f
parent11863e9308da0e33109c537132861e0d34057d62 (diff)
downloadchrome-ec-79195818caeff76a6eb3a3d4991b095920b55e33.tar.gz
pd: for one PD port, allow task to be named PD or PD_C0
BUG=none BRANCH=none TEST=make -j buildall Change-Id: If8442a0a2d0a26c4e2cd4e23cbb93f689258bf21 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/284913 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--include/usb_pd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index 6950e8065b..227e53f9e2 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -21,6 +21,8 @@
#if CONFIG_USB_PD_PORT_COUNT == 1
#ifdef HAS_TASK_PD
#define PD_PORT_TO_TASK_ID(port) TASK_ID_PD
+#elif defined(HAS_TASK_PD_C0)
+#define PD_PORT_TO_TASK_ID(port) TASK_ID_PD_C0
#else
#define PD_PORT_TO_TASK_ID(port) -1 /* dummy task ID */
#endif