aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Tikhomirov <av.tikhomirov@samsung.com>2013-11-25 21:47:53 -0500
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 12:02:29 -0400
commitd111ef70050791756fa3f33bca02a0536942ccad (patch)
tree14c990bc15b8d7a5912a1210557e598275b3db2b
parent22caff716f3c3b6d210e6f5841bf7c05cf4d024e (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)
-rw-r--r--drivers/usb/phy/Kconfig10
-rw-r--r--drivers/usb/phy/Makefile4
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"
6config USB_PHY 6config USB_PHY
7 def_bool n 7 def_bool n
8 8
9config 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
21config FSL_USB2_OTG 29config 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
7obj-$(CONFIG_USB_PHY) += phy.o 7obj-$(CONFIG_USB_PHY) += phy.o
8obj-$(CONFIG_OF) += of.o 8obj-$(CONFIG_OF) += of.o
9obj-$(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
12obj-$(CONFIG_AB8500_USB) += phy-ab8500-usb.o 13obj-$(CONFIG_AB8500_USB) += phy-ab8500-usb.o
13phy-fsl-usb2-objs := phy-fsl-usb.o phy-fsm-usb.o 14obj-$(CONFIG_FSL_USB2_OTG) += phy-fsl-usb.o
14obj-$(CONFIG_FSL_USB2_OTG) += phy-fsl-usb2.o
15obj-$(CONFIG_ISP1301_OMAP) += phy-isp1301-omap.o 15obj-$(CONFIG_ISP1301_OMAP) += phy-isp1301-omap.o
16obj-$(CONFIG_MV_U3D_PHY) += phy-mv-u3d-usb.o 16obj-$(CONFIG_MV_U3D_PHY) += phy-mv-u3d-usb.o
17obj-$(CONFIG_NOP_USB_XCEIV) += phy-nop.o 17obj-$(CONFIG_NOP_USB_XCEIV) += phy-nop.o