usb: ehci-omap: Make Kconfig select PHY if USB_EHCI_OMAP

The USB_EHCI_OMAP driver currently has a series of Kconfig options
which let users specify a GPIO for the reset pin.  Some devices
may have only one reset, while others might have more.

Since there is a nop phy driver, let's selct enable the PHY
system, and imply the nop phy driver.  The nop phy driver can now
toggle the reset pins when putting the phy in and out of reset.

If the gpio is listed under the phy, it will get toggled and
the hard-coded config options specifying the GPIO numbers can
eventually go away.

Signed-off-by: Adam Ford <aford173@gmail.com>
This commit is contained in:
Adam Ford 2022-02-19 17:08:44 -06:00 committed by Marek Vasut
parent f9852acdce
commit d11f995cb9

View File

@ -191,6 +191,8 @@ config USB_EHCI_MXS
config USB_EHCI_OMAP config USB_EHCI_OMAP
bool "Support for OMAP3+ on-chip EHCI USB controller" bool "Support for OMAP3+ on-chip EHCI USB controller"
depends on ARCH_OMAP2PLUS depends on ARCH_OMAP2PLUS
select PHY
imply NOP_PHY
default y default y
---help--- ---help---
Enables support for the on-chip EHCI controller on OMAP3 and later Enables support for the on-chip EHCI controller on OMAP3 and later