summaryrefslogtreecommitdiff
path: root/board/twinkie
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2015-01-07 10:44:43 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-01-08 22:36:27 +0000
commit3c292e0398e066279124ced299e860585890e4c6 (patch)
treec0584fcad51b1642f4abafa62226a6c8342a4eaf /board/twinkie
parentdce1b1e8b17a21e577dd6446932d27bf93056a36 (diff)
downloadchrome-ec-3c292e0398e066279124ced299e860585890e4c6.tar.gz
twinkie: fix sink firmware
add a dummy pd_custom_vdm() function to be able to build again a Twinkie firmware in "PD sink" mode. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=none TEST=./board/twinkie/build_rw_variant Change-Id: Ib0f82ecd1197300cf7b36f0f43c6b1cd03203557 Reviewed-on: https://chromium-review.googlesource.com/239234 Reviewed-by: Alec Berg <alecaberg@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/twinkie')
-rw-r--r--board/twinkie/usb_pd_policy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/twinkie/usb_pd_policy.c b/board/twinkie/usb_pd_policy.c
index 3491326ec3..e52f2f0057 100644
--- a/board/twinkie/usb_pd_policy.c
+++ b/board/twinkie/usb_pd_policy.c
@@ -112,3 +112,9 @@ void pd_execute_data_swap(int port, int data_role)
{
/* Do nothing */
}
+
+int pd_custom_vdm(int port, int cnt, uint32_t *payload,
+ uint32_t **rpayload)
+{
+ return 0;
+}