diff options
author | Felipe Balbi <balbi@ti.com> | 2013-03-07 04:13:43 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-18 05:18:05 -0400 |
commit | edc7cb2e955f222fe51cd44c1cf9c94d58017344 (patch) | |
tree | b2ca2f250c9a638128469fbaaa5db1f63928f9f6 /drivers/usb/phy | |
parent | a0e631235a04f8a815a1ecec93ef418f7d1e6086 (diff) |
usb: phy: make it a menuconfig
We already have a considerable amount of USB
PHY drivers, making it a menuconfig just
prevents us from adding too much churn to
USB's menuconfig.
While at that, also select USB_OTG_UTILS from
this new menuconfig just to keep backwards
compatibility until we manage to remove
that symbol.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy')
-rw-r--r-- | drivers/usb/phy/Kconfig | 17 | ||||
-rw-r--r-- | drivers/usb/phy/Makefile | 2 |
2 files changed, 13 insertions, 6 deletions
diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig index 32ce740a9dd5..832cd694fb8b 100644 --- a/drivers/usb/phy/Kconfig +++ b/drivers/usb/phy/Kconfig | |||
@@ -1,8 +1,17 @@ | |||
1 | # | 1 | # |
2 | # Physical Layer USB driver configuration | 2 | # Physical Layer USB driver configuration |
3 | # | 3 | # |
4 | comment "USB Physical Layer drivers" | 4 | menuconfig USB_PHY |
5 | depends on USB || USB_GADGET | 5 | tristate "USB Physical Layer drivers" |
6 | select USB_OTG_UTILS | ||
7 | help | ||
8 | USB controllers (those which are host, device or DRD) need a | ||
9 | device to handle the physical layer signalling, commonly called | ||
10 | a PHY. | ||
11 | |||
12 | The following drivers add support for such PHY devices. | ||
13 | |||
14 | if USB_PHY | ||
6 | 15 | ||
7 | config USB_OTG_UTILS | 16 | config USB_OTG_UTILS |
8 | bool | 17 | bool |
@@ -10,8 +19,6 @@ config USB_OTG_UTILS | |||
10 | Select this to make sure the build includes objects from | 19 | Select this to make sure the build includes objects from |
11 | the OTG infrastructure directory. | 20 | the OTG infrastructure directory. |
12 | 21 | ||
13 | if USB || USB_GADGET | ||
14 | |||
15 | # | 22 | # |
16 | # USB Transceiver Drivers | 23 | # USB Transceiver Drivers |
17 | # | 24 | # |
@@ -206,4 +213,4 @@ config USB_ULPI_VIEWPORT | |||
206 | Provides read/write operations to the ULPI phy register set for | 213 | Provides read/write operations to the ULPI phy register set for |
207 | controllers with a viewport register (e.g. Chipidea/ARC controllers). | 214 | controllers with a viewport register (e.g. Chipidea/ARC controllers). |
208 | 215 | ||
209 | endif # USB || OTG | 216 | endif # USB_PHY |
diff --git a/drivers/usb/phy/Makefile b/drivers/usb/phy/Makefile index 34488ceef491..d10a8b387ffe 100644 --- a/drivers/usb/phy/Makefile +++ b/drivers/usb/phy/Makefile | |||
@@ -4,7 +4,7 @@ | |||
4 | 4 | ||
5 | ccflags-$(CONFIG_USB_DEBUG) := -DDEBUG | 5 | ccflags-$(CONFIG_USB_DEBUG) := -DDEBUG |
6 | 6 | ||
7 | obj-$(CONFIG_USB_OTG_UTILS) += phy.o | 7 | obj-$(CONFIG_USB_PHY) += phy.o |
8 | 8 | ||
9 | # transceiver drivers, keep the list sorted | 9 | # transceiver drivers, keep the list sorted |
10 | 10 | ||