rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Physical Layer USB driver configuration |
| 3 | # |
| 4 | menu "USB Physical Layer drivers" |
| 5 | |
| 6 | config USB_PHY |
| 7 | select EXTCON |
| 8 | def_bool n |
| 9 | |
| 10 | config USB_OTG_WAKELOCK |
| 11 | bool "Hold a wakelock when USB connected" |
| 12 | depends on PM_WAKELOCKS |
| 13 | select USB_OTG_UTILS |
| 14 | help |
| 15 | Select this to automatically hold a wakelock when USB is |
| 16 | connected, preventing suspend. |
| 17 | |
| 18 | # |
| 19 | # USB Transceiver Drivers |
| 20 | # |
| 21 | config AB8500_USB |
| 22 | tristate "AB8500 USB Transceiver Driver" |
| 23 | depends on AB8500_CORE |
| 24 | select USB_PHY |
| 25 | help |
| 26 | Enable this to support the USB OTG transceiver in AB8500 chip. |
| 27 | This transceiver supports high and full speed devices plus, |
| 28 | in host mode, low speed. |
| 29 | |
| 30 | config FSL_USB2_OTG |
| 31 | tristate "Freescale USB OTG Transceiver Driver" |
| 32 | depends on USB_EHCI_FSL && USB_FSL_USB2 && USB_OTG_FSM=y && PM |
| 33 | depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y' |
| 34 | select USB_PHY |
| 35 | help |
| 36 | Enable this to support Freescale USB OTG transceiver. |
| 37 | |
| 38 | config ISP1301_OMAP |
| 39 | tristate "Philips ISP1301 with OMAP OTG" |
| 40 | depends on I2C && ARCH_OMAP_OTG |
| 41 | depends on USB |
| 42 | depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y' |
| 43 | select USB_PHY |
| 44 | help |
| 45 | If you say yes here you get support for the Philips ISP1301 |
| 46 | USB-On-The-Go transceiver working with the OMAP OTG controller. |
| 47 | The ISP1301 is a full speed USB transceiver which is used in |
| 48 | products including H2, H3, and H4 development boards for Texas |
| 49 | Instruments OMAP processors. |
| 50 | |
| 51 | This driver can also be built as a module. If so, the module |
| 52 | will be called phy-isp1301-omap. |
| 53 | |
| 54 | config KEYSTONE_USB_PHY |
| 55 | tristate "Keystone USB PHY Driver" |
| 56 | depends on ARCH_KEYSTONE || COMPILE_TEST |
| 57 | depends on NOP_USB_XCEIV |
| 58 | help |
| 59 | Enable this to support Keystone USB phy. This driver provides |
| 60 | interface to interact with USB 2.0 and USB 3.0 PHY that is part |
| 61 | of the Keystone SOC. |
| 62 | |
| 63 | config NOP_USB_XCEIV |
| 64 | tristate "NOP USB Transceiver Driver" |
| 65 | depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, NOP can't be built-in |
| 66 | select USB_PHY |
| 67 | help |
| 68 | This driver is to be used by all the usb transceiver which are either |
| 69 | built-in with usb ip or which are autonomous and doesn't require any |
| 70 | phy programming such as ISP1x04 etc. |
| 71 | |
| 72 | config AM335X_CONTROL_USB |
| 73 | tristate |
| 74 | |
| 75 | config AM335X_PHY_USB |
| 76 | tristate "AM335x USB PHY Driver" |
| 77 | depends on ARM || COMPILE_TEST |
| 78 | depends on NOP_USB_XCEIV |
| 79 | select USB_PHY |
| 80 | select AM335X_CONTROL_USB |
| 81 | select USB_COMMON |
| 82 | help |
| 83 | This driver provides PHY support for that phy which part for the |
| 84 | AM335x SoC. |
| 85 | |
| 86 | config TWL6030_USB |
| 87 | tristate "TWL6030 USB Transceiver Driver" |
| 88 | depends on TWL4030_CORE && OMAP_USB2 && USB_MUSB_OMAP2PLUS |
| 89 | depends on OF |
| 90 | help |
| 91 | Enable this to support the USB OTG transceiver on TWL6030 |
| 92 | family chips. This TWL6030 transceiver has the VBUS and ID GND |
| 93 | and OTG SRP events capabilities. For all other transceiver functionality |
| 94 | UTMI PHY is embedded in OMAP4430. The internal PHY configurations APIs |
| 95 | are hooked to this driver through platform_data structure. |
| 96 | The definition of internal PHY APIs are in the mach-omap2 layer. |
| 97 | |
| 98 | config USB_GPIO_VBUS |
| 99 | tristate "GPIO based peripheral-only VBUS sensing 'transceiver'" |
| 100 | depends on GPIOLIB || COMPILE_TEST |
| 101 | depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y' |
| 102 | select USB_PHY |
| 103 | help |
| 104 | Provides simple GPIO VBUS sensing for controllers with an |
| 105 | internal transceiver via the usb_phy interface, and |
| 106 | optionally control of a D+ pullup GPIO as well as a VBUS |
| 107 | current limit regulator. |
| 108 | |
| 109 | config OMAP_OTG |
| 110 | tristate "OMAP USB OTG controller driver" |
| 111 | depends on ARCH_OMAP_OTG && EXTCON |
| 112 | help |
| 113 | Enable this to support some transceivers on OMAP1 platforms. OTG |
| 114 | controller is needed to switch between host and peripheral modes. |
| 115 | |
| 116 | This driver can also be built as a module. If so, the module |
| 117 | will be called phy-omap-otg. |
| 118 | |
| 119 | config TAHVO_USB |
| 120 | tristate "Tahvo USB transceiver driver" |
| 121 | depends on MFD_RETU |
| 122 | depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y' |
| 123 | select USB_PHY |
| 124 | help |
| 125 | Enable this to support USB transceiver on Tahvo. This is used |
| 126 | at least on Nokia 770. |
| 127 | |
| 128 | config TAHVO_USB_HOST_BY_DEFAULT |
| 129 | depends on TAHVO_USB |
| 130 | bool "Device in USB host mode by default" |
| 131 | help |
| 132 | Say Y here, if you want the device to enter USB host mode |
| 133 | by default on bootup. |
| 134 | |
| 135 | config USB_ISP1301 |
| 136 | tristate "NXP ISP1301 USB transceiver support" |
| 137 | depends on USB || USB_GADGET |
| 138 | depends on I2C |
| 139 | select USB_PHY |
| 140 | help |
| 141 | Say Y here to add support for the NXP ISP1301 USB transceiver driver. |
| 142 | This chip is typically used as USB transceiver for USB host, gadget |
| 143 | and OTG drivers (to be selected separately). |
| 144 | |
| 145 | To compile this driver as a module, choose M here: the |
| 146 | module will be called phy-isp1301. |
| 147 | |
| 148 | config USB_MSM_OTG |
| 149 | tristate "Qualcomm on-chip USB OTG controller support" |
| 150 | depends on (USB || USB_GADGET) && (ARCH_QCOM || COMPILE_TEST) |
| 151 | depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y' |
| 152 | depends on RESET_CONTROLLER |
| 153 | select USB_PHY |
| 154 | help |
| 155 | Enable this to support the USB OTG transceiver on Qualcomm chips. It |
| 156 | handles PHY initialization, clock management, and workarounds |
| 157 | required after resetting the hardware and power management. |
| 158 | This driver is required even for peripheral only or host only |
| 159 | mode configurations. |
| 160 | This driver is not supported on boards like trout which |
| 161 | has an external PHY. |
| 162 | |
| 163 | config USB_QCOM_8X16_PHY |
| 164 | tristate "Qualcomm APQ8016/MSM8916 on-chip USB PHY controller support" |
| 165 | depends on ARCH_QCOM || COMPILE_TEST |
| 166 | depends on RESET_CONTROLLER |
| 167 | select USB_PHY |
| 168 | select USB_ULPI_VIEWPORT |
| 169 | help |
| 170 | Enable this to support the USB transceiver on Qualcomm 8x16 chipsets. |
| 171 | It handles PHY initialization, clock management, power management, |
| 172 | and workarounds required after resetting the hardware. |
| 173 | |
| 174 | To compile this driver as a module, choose M here: the |
| 175 | module will be called phy-qcom-8x16-usb. |
| 176 | |
| 177 | config USB_MV_OTG |
| 178 | tristate "Marvell USB OTG support" |
| 179 | depends on USB_EHCI_MV && USB_MV_UDC && PM && USB_OTG |
| 180 | depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y' |
| 181 | select USB_PHY |
| 182 | help |
| 183 | Say Y here if you want to build Marvell USB OTG transciever |
| 184 | driver in kernel (including PXA and MMP series). This driver |
| 185 | implements role switch between EHCI host driver and gadget driver. |
| 186 | |
| 187 | To compile this driver as a module, choose M here. |
| 188 | |
| 189 | config USB_MXS_PHY |
| 190 | tristate "Freescale MXS USB PHY support" |
| 191 | depends on ARCH_MXC || ARCH_MXS |
| 192 | select STMP_DEVICE |
| 193 | select USB_PHY |
| 194 | help |
| 195 | Enable this to support the Freescale MXS USB PHY. |
| 196 | |
| 197 | MXS Phy is used by some of the i.MX SoCs, for example imx23/28/6x. |
| 198 | |
| 199 | config USB_ULPI |
| 200 | bool "Generic ULPI Transceiver Driver" |
| 201 | depends on ARM || ARM64 |
| 202 | select USB_ULPI_VIEWPORT |
| 203 | help |
| 204 | Enable this to support ULPI connected USB OTG transceivers which |
| 205 | are likely found on embedded boards. |
| 206 | |
| 207 | config USB_ULPI_VIEWPORT |
| 208 | bool |
| 209 | help |
| 210 | Provides read/write operations to the ULPI phy register set for |
| 211 | controllers with a viewport register (e.g. Chipidea/ARC controllers). |
| 212 | |
| 213 | config DUAL_ROLE_USB_INTF |
| 214 | bool "Generic DUAL ROLE sysfs interface" |
| 215 | depends on SYSFS && USB_PHY |
| 216 | help |
| 217 | A generic sysfs interface to track and change the state of |
| 218 | dual role usb phys. The usb phy drivers can register to |
| 219 | this interface to expose it capabilities to the userspace |
| 220 | and thereby allowing userspace to change the port mode. |
| 221 | |
| 222 | endmenu |