diff options
Diffstat (limited to 'board/samus_pd/usb_pd_policy.c')
-rw-r--r-- | board/samus_pd/usb_pd_policy.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/samus_pd/usb_pd_policy.c b/board/samus_pd/usb_pd_policy.c index 85e3244527..7e1302b018 100644 --- a/board/samus_pd/usb_pd_policy.c +++ b/board/samus_pd/usb_pd_policy.c @@ -151,6 +151,12 @@ int pd_check_data_swap(int port, int data_role) return (data_role == PD_ROLE_UFP) ? 1 : 0; } +int pd_check_vconn_swap(int port) +{ + /* in S5, do not allow vconn swap since pp5000 rail is off */ + return gpio_get_level(GPIO_PCH_SLP_S5_L); +} + void pd_execute_data_swap(int port, int data_role) { /* Open USB switches when taking UFP role */ |