diff options
| author | Anton Tikhomirov <av.tikhomirov@samsung.com> | 2013-11-25 21:47:53 -0500 |
|---|---|---|
| committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 12:02:29 -0400 |
| commit | d111ef70050791756fa3f33bca02a0536942ccad (patch) | |
| tree | 14c990bc15b8d7a5912a1210557e598275b3db2b /drivers/usb/phy | |
| parent | 22caff716f3c3b6d210e6f5841bf7c05cf4d024e (diff) | |
usb: phy: Add OTG FSM configuration option
This patch removes dependency on Freescale USB UTG Transceiver
driver and makes OTG FSM implementation selectable.
Signed-off-by: Anton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
(cherry-picked from commit e1d2e31975e1e3a31ac592d5b1c5cb5d655b3f4e)
Diffstat (limited to 'drivers/usb/phy')
| -rw-r--r-- | drivers/usb/phy/Kconfig | 10 | ||||
| -rw-r--r-- | drivers/usb/phy/Makefile | 4 |
2 files changed, 11 insertions, 3 deletions
diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig index d79d8a378d8c..a13631d11083 100644 --- a/drivers/usb/phy/Kconfig +++ b/drivers/usb/phy/Kconfig | |||
| @@ -6,6 +6,14 @@ menu "USB Physical Layer drivers" | |||
| 6 | config USB_PHY | 6 | config USB_PHY |
| 7 | def_bool n | 7 | def_bool n |
| 8 | 8 | ||
| 9 | config USB_OTG_FSM | ||
| 10 | bool "USB 2.0 OTG FSM implementation" | ||
| 11 | select USB_OTG | ||
| 12 | select USB_PHY | ||
| 13 | help | ||
| 14 | Implements OTG Final State Machine as specified in On-The-Go | ||
| 15 | and Embedded Host Supplement to the USB Revision 2.0 Specification. | ||
| 16 | |||
| 9 | # | 17 | # |
| 10 | # USB Transceiver Drivers | 18 | # USB Transceiver Drivers |
| 11 | # | 19 | # |
| @@ -20,7 +28,7 @@ config AB8500_USB | |||
| 20 | 28 | ||
| 21 | config FSL_USB2_OTG | 29 | config FSL_USB2_OTG |
| 22 | bool "Freescale USB OTG Transceiver Driver" | 30 | bool "Freescale USB OTG Transceiver Driver" |
| 23 | depends on USB_EHCI_FSL && USB_FSL_USB2 && PM_RUNTIME | 31 | depends on USB_EHCI_FSL && USB_FSL_USB2 && USB_OTG_FSM && PM_RUNTIME |
| 24 | select USB_OTG | 32 | select USB_OTG |
| 25 | select USB_PHY | 33 | select USB_PHY |
| 26 | help | 34 | help |
diff --git a/drivers/usb/phy/Makefile b/drivers/usb/phy/Makefile index 070eca3af18b..fee33f6a315e 100644 --- a/drivers/usb/phy/Makefile +++ b/drivers/usb/phy/Makefile | |||
| @@ -6,12 +6,12 @@ ccflags-$(CONFIG_USB_DEBUG) := -DDEBUG | |||
| 6 | 6 | ||
| 7 | obj-$(CONFIG_USB_PHY) += phy.o | 7 | obj-$(CONFIG_USB_PHY) += phy.o |
| 8 | obj-$(CONFIG_OF) += of.o | 8 | obj-$(CONFIG_OF) += of.o |
| 9 | obj-$(CONFIG_USB_OTG_FSM) += phy-fsm-usb.o | ||
| 9 | 10 | ||
| 10 | # transceiver drivers, keep the list sorted | 11 | # transceiver drivers, keep the list sorted |
| 11 | 12 | ||
| 12 | obj-$(CONFIG_AB8500_USB) += phy-ab8500-usb.o | 13 | obj-$(CONFIG_AB8500_USB) += phy-ab8500-usb.o |
| 13 | phy-fsl-usb2-objs := phy-fsl-usb.o phy-fsm-usb.o | 14 | obj-$(CONFIG_FSL_USB2_OTG) += phy-fsl-usb.o |
| 14 | obj-$(CONFIG_FSL_USB2_OTG) += phy-fsl-usb2.o | ||
| 15 | obj-$(CONFIG_ISP1301_OMAP) += phy-isp1301-omap.o | 15 | obj-$(CONFIG_ISP1301_OMAP) += phy-isp1301-omap.o |
| 16 | obj-$(CONFIG_MV_U3D_PHY) += phy-mv-u3d-usb.o | 16 | obj-$(CONFIG_MV_U3D_PHY) += phy-mv-u3d-usb.o |
| 17 | obj-$(CONFIG_NOP_USB_XCEIV) += phy-nop.o | 17 | obj-$(CONFIG_NOP_USB_XCEIV) += phy-nop.o |
