mirror of https://github.com/OpenIPC/firmware.git
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
diff -drupN a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig
|
|
--- a/drivers/usb/phy/Kconfig 2018-08-06 17:23:04.000000000 +0300
|
|
+++ b/drivers/usb/phy/Kconfig 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -6,6 +6,14 @@ menu "USB Physical Layer drivers"
|
|
config USB_PHY
|
|
def_bool n
|
|
|
|
+config USB_OTG_WAKELOCK
|
|
+ bool "Hold a wakelock when USB connected"
|
|
+ depends on PM_WAKELOCKS
|
|
+ select USB_OTG_UTILS
|
|
+ help
|
|
+ Select this to automatically hold a wakelock when USB is
|
|
+ connected, preventing suspend.
|
|
+
|
|
#
|
|
# USB Transceiver Drivers
|
|
#
|
|
@@ -209,4 +217,13 @@ config USB_ULPI_VIEWPORT
|
|
Provides read/write operations to the ULPI phy register set for
|
|
controllers with a viewport register (e.g. Chipidea/ARC controllers).
|
|
|
|
+config DUAL_ROLE_USB_INTF
|
|
+ bool "Generic DUAL ROLE sysfs interface"
|
|
+ depends on SYSFS && USB_PHY
|
|
+ help
|
|
+ A generic sysfs interface to track and change the state of
|
|
+ dual role usb phys. The usb phy drivers can register to
|
|
+ this interface to expose it capabilities to the userspace
|
|
+ and thereby allowing userspace to change the port mode.
|
|
+
|
|
endmenu
|