summaryrefslogtreecommitdiff
path: root/drivers/extcon/Kconfig
diff options
context:
space:
mode:
authorLi Jun <jun.li@nxp.com>2022-04-19 20:44:09 +0800
committerChanwoo Choi <cw00.choi@samsung.com>2022-05-13 17:03:41 +0900
commit1bfcaa5700811117d845f081a1241dd59b885b6c (patch)
tree26defd0af4ad0fb5840eae8234ea8bfc7589c1b9 /drivers/extcon/Kconfig
parent782cd939cbe0f569197cd1c9b0477ee213167f04 (diff)
extcon: ptn5150: Add usb role class support
Some usb controller drivers may not support extcon but use usb role class as it's the preferred approach, so to support usb dual role switch with usb role class, add usb role class consumer support. Signed-off-by: Li Jun <jun.li@nxp.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon/Kconfig')
-rw-r--r--drivers/extcon/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/extcon/Kconfig b/drivers/extcon/Kconfig
index 88a8b3d7d78a..dca7cecb37e3 100644
--- a/drivers/extcon/Kconfig
+++ b/drivers/extcon/Kconfig
@@ -131,6 +131,7 @@ config EXTCON_PALMAS
config EXTCON_PTN5150
tristate "NXP PTN5150 CC LOGIC USB EXTCON support"
depends on I2C && (GPIOLIB || COMPILE_TEST)
+ depends on USB_ROLE_SWITCH || !USB_ROLE_SWITCH
select REGMAP_I2C
help
Say Y here to enable support for USB peripheral and USB host