summaryrefslogtreecommitdiff
path: root/test/usb_pe_drp.c
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2020-03-24 16:31:59 -0600
committerCommit Bot <commit-bot@chromium.org>2020-03-27 22:12:44 +0000
commitcb893a4257bbb2ebc40940b6a557daa2102ec6fe (patch)
treee485d46265ca231633a26bcc1cacd9daa064cb58 /test/usb_pe_drp.c
parent90d47e5e3b7a957095b87330359592e19b174297 (diff)
downloadchrome-ec-cb893a4257bbb2ebc40940b6a557daa2102ec6fe.tar.gz
config: update TCPMv2 config options
Reorganize how the TCPMv2 options are used - Update documentation in config.h and bring TCPMv2 items close together - Make the layer defines consistent on how they include compilation units - Update tests to account for how files are included now - Remove unnecessary defines in board.h since they are default on BRANCH=none BUG=none TEST=builds Change-Id: I91fca51648912deef44db23492ecc7775b2e3062 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2120063 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'test/usb_pe_drp.c')
-rw-r--r--test/usb_pe_drp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/usb_pe_drp.c b/test/usb_pe_drp.c
index 64699c4d02..f757adf8ec 100644
--- a/test/usb_pe_drp.c
+++ b/test/usb_pe_drp.c
@@ -41,6 +41,11 @@ void pd_set_vbus_discharge(int port, int enable)
gpio_set_level(GPIO_USB_C0_DISCHARGE, enable);
}
+uint8_t tc_get_pd_enabled(int port)
+{
+ return 1;
+}
+
/**
* Test section
*/