diff options
author | Peter Chen <peter.chen@freescale.com> | 2014-04-28 20:35:59 -0400 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2014-06-26 00:27:28 -0400 |
commit | a2e4a852ad3b18d1b52fe741f6703c06029c5f37 (patch) | |
tree | 7fb205d27dd61434e713f3a8653fe8a39561d2cc | |
parent | 872924628a27ad87ab44a69d3bd95ef6dd11bcbd (diff) |
usb: common: rename phy-fsm-usb.c to usb-otg-fsm.c
Since usb otg fsm implementation is not related to usb phy.
We move it from usb/phy/ to usb/common/, and rename it to
reflect its real meaning.
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 8dc0fda6e5246450c688e2d3e09f9834a4323e01)
-rw-r--r-- | drivers/usb/common/Makefile | 1 | ||||
-rw-r--r-- | drivers/usb/common/usb-otg-fsm.c (renamed from drivers/usb/phy/phy-fsm-usb.c) | 0 | ||||
-rw-r--r-- | drivers/usb/core/Kconfig | 9 | ||||
-rw-r--r-- | drivers/usb/phy/Kconfig | 8 | ||||
-rw-r--r-- | drivers/usb/phy/Makefile | 1 |
5 files changed, 10 insertions, 9 deletions
diff --git a/drivers/usb/common/Makefile b/drivers/usb/common/Makefile index 9b320d1a11fd..752646167e1e 100644 --- a/drivers/usb/common/Makefile +++ b/drivers/usb/common/Makefile | |||
@@ -3,3 +3,4 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | obj-$(CONFIG_USB_COMMON) += usb-common.o | 5 | obj-$(CONFIG_USB_COMMON) += usb-common.o |
6 | obj-$(CONFIG_USB_OTG_FSM) += usb-otg-fsm.o | ||
diff --git a/drivers/usb/phy/phy-fsm-usb.c b/drivers/usb/common/usb-otg-fsm.c index f51dc5e9a23b..f51dc5e9a23b 100644 --- a/drivers/usb/phy/phy-fsm-usb.c +++ b/drivers/usb/common/usb-otg-fsm.c | |||
diff --git a/drivers/usb/core/Kconfig b/drivers/usb/core/Kconfig index db535b0aa172..73bd77cf075a 100644 --- a/drivers/usb/core/Kconfig +++ b/drivers/usb/core/Kconfig | |||
@@ -89,3 +89,12 @@ config USB_OTG_BLACKLIST_HUB | |||
89 | and software costs by not supporting external hubs. So | 89 | and software costs by not supporting external hubs. So |
90 | are "Embedded Hosts" that don't offer OTG support. | 90 | are "Embedded Hosts" that don't offer OTG support. |
91 | 91 | ||
92 | config USB_OTG_FSM | ||
93 | tristate "USB 2.0 OTG FSM implementation" | ||
94 | depends on USB | ||
95 | select USB_OTG | ||
96 | select USB_PHY | ||
97 | help | ||
98 | Implements OTG Finite State Machine as specified in On-The-Go | ||
99 | and Embedded Host Supplement to the USB Revision 2.0 Specification. | ||
100 | |||
diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig index a13631d11083..9883d2e1b495 100644 --- a/drivers/usb/phy/Kconfig +++ b/drivers/usb/phy/Kconfig | |||
@@ -6,14 +6,6 @@ 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 | |||
17 | # | 9 | # |
18 | # USB Transceiver Drivers | 10 | # USB Transceiver Drivers |
19 | # | 11 | # |
diff --git a/drivers/usb/phy/Makefile b/drivers/usb/phy/Makefile index fee33f6a315e..d8ee9f743479 100644 --- a/drivers/usb/phy/Makefile +++ b/drivers/usb/phy/Makefile | |||
@@ -6,7 +6,6 @@ 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 | ||
10 | 9 | ||
11 | # transceiver drivers, keep the list sorted | 10 | # transceiver drivers, keep the list sorted |
12 | 11 | ||