blob: 6d2bd58b829b549b946e1731ba68f05c86ea1b66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if PLATFORM_EC_USBC
if PLATFORM_EC_USB_POWER_DELIVERY
config PLATFORM_EC_USB_PD_DISCHARGE
bool "Board can discharge VBUS"
default y
help
Enable this if the board can enable VBUS discharge (eg. through a
GPIO-controlled discharge circuit, or through port controller
registers) to discharge VBUS rapidly on disconnect
choice PLATFORM_EC_USB_PD_DISCHARGE_MODE
prompt "Select the discharge method"
depends on PLATFORM_EC_USB_PD_DISCHARGE
config PLATFORM_EC_USB_PD_DISCHARGE_GPIO
bool "GPIO control"
help
Enable this if the discharge circuit is controlled by a GPIO
TODO: How to specify the GPIO?
config PLATFORM_EC_USB_PD_DISCHARGE_TCPC
bool "Discharge circuit is provided by the TCPC"
help
Enable this if the discharge circuit is provided by Power-Delivery
resistors on the USB Type-C Port Controller (TCPC).
config PLATFORM_EC_USB_PD_DISCHARGE_PPC
bool "Discharge circuit is provided by the PPC"
help
Enable this if the discharge circuit is using Power Delivery
resistors on the Power Path Controller.
endchoice # PLATFORM_EC_USB_PD_DISCHARGE_MODE
endif # PLATFORM_EC_USB_POWER_DELIVERY
endif # PLATFORM_EC_USBC
|