diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2008-11-24 14:53:35 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-07 13:00:02 -0500 |
commit | b8da8677d4f88db066c1cfe34529d970a060de46 (patch) | |
tree | 2a3ecc830e655c63dd9fa9dc69959fcdb77a513a /drivers | |
parent | ea99ecfdc81266e61f4445c1830315a65eb8175a (diff) |
USB: move isp1301_omap to drivers/usb/otg
This moves the isp1301-omap driver from the drivers/i2c/chips
directory (which will be shrinking) into a new drivers/usb/otg
directory (which will grow, with more drivers and utilities).
Note that OTG infrastructure needs to be initialized before
either host or peripheral side USB support, and may be needed
before for pure host or pure peripheral configurations.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/Makefile | 1 | ||||
-rw-r--r-- | drivers/i2c/chips/Kconfig | 12 | ||||
-rw-r--r-- | drivers/i2c/chips/Makefile | 1 | ||||
-rw-r--r-- | drivers/usb/Kconfig | 2 | ||||
-rw-r--r-- | drivers/usb/otg/Kconfig | 31 | ||||
-rw-r--r-- | drivers/usb/otg/Makefile | 8 | ||||
-rw-r--r-- | drivers/usb/otg/isp1301_omap.c (renamed from drivers/i2c/chips/isp1301_omap.c) | 0 |
7 files changed, 42 insertions, 13 deletions
diff --git a/drivers/Makefile b/drivers/Makefile index fceb71a741c3..e121b66ef082 100644 --- a/drivers/Makefile +++ b/drivers/Makefile | |||
@@ -57,6 +57,7 @@ obj-$(CONFIG_ATA_OVER_ETH) += block/aoe/ | |||
57 | obj-$(CONFIG_PARIDE) += block/paride/ | 57 | obj-$(CONFIG_PARIDE) += block/paride/ |
58 | obj-$(CONFIG_TC) += tc/ | 58 | obj-$(CONFIG_TC) += tc/ |
59 | obj-$(CONFIG_UWB) += uwb/ | 59 | obj-$(CONFIG_UWB) += uwb/ |
60 | obj-$(CONFIG_USB_OTG_UTILS) += usb/otg/ | ||
60 | obj-$(CONFIG_USB) += usb/ | 61 | obj-$(CONFIG_USB) += usb/ |
61 | obj-$(CONFIG_USB_MUSB_HDRC) += usb/musb/ | 62 | obj-$(CONFIG_USB_MUSB_HDRC) += usb/musb/ |
62 | obj-$(CONFIG_PCI) += usb/ | 63 | obj-$(CONFIG_PCI) += usb/ |
diff --git a/drivers/i2c/chips/Kconfig b/drivers/i2c/chips/Kconfig index 864ac561fdbb..59c3d23f5bdc 100644 --- a/drivers/i2c/chips/Kconfig +++ b/drivers/i2c/chips/Kconfig | |||
@@ -114,18 +114,6 @@ config SENSORS_PCF8591 | |||
114 | These devices are hard to detect and rarely found on mainstream | 114 | These devices are hard to detect and rarely found on mainstream |
115 | hardware. If unsure, say N. | 115 | hardware. If unsure, say N. |
116 | 116 | ||
117 | config ISP1301_OMAP | ||
118 | tristate "Philips ISP1301 with OMAP OTG" | ||
119 | depends on ARCH_OMAP_OTG | ||
120 | help | ||
121 | If you say yes here you get support for the Philips ISP1301 | ||
122 | USB-On-The-Go transceiver working with the OMAP OTG controller. | ||
123 | The ISP1301 is used in products including H2 and H3 development | ||
124 | boards for Texas Instruments OMAP processors. | ||
125 | |||
126 | This driver can also be built as a module. If so, the module | ||
127 | will be called isp1301_omap. | ||
128 | |||
129 | config SENSORS_MAX6875 | 117 | config SENSORS_MAX6875 |
130 | tristate "Maxim MAX6875 Power supply supervisor" | 118 | tristate "Maxim MAX6875 Power supply supervisor" |
131 | depends on EXPERIMENTAL | 119 | depends on EXPERIMENTAL |
diff --git a/drivers/i2c/chips/Makefile b/drivers/i2c/chips/Makefile index 8b95f41a5001..83accaaf8164 100644 --- a/drivers/i2c/chips/Makefile +++ b/drivers/i2c/chips/Makefile | |||
@@ -18,7 +18,6 @@ obj-$(CONFIG_SENSORS_PCA9539) += pca9539.o | |||
18 | obj-$(CONFIG_SENSORS_PCF8574) += pcf8574.o | 18 | obj-$(CONFIG_SENSORS_PCF8574) += pcf8574.o |
19 | obj-$(CONFIG_PCF8575) += pcf8575.o | 19 | obj-$(CONFIG_PCF8575) += pcf8575.o |
20 | obj-$(CONFIG_SENSORS_PCF8591) += pcf8591.o | 20 | obj-$(CONFIG_SENSORS_PCF8591) += pcf8591.o |
21 | obj-$(CONFIG_ISP1301_OMAP) += isp1301_omap.o | ||
22 | obj-$(CONFIG_SENSORS_TSL2550) += tsl2550.o | 21 | obj-$(CONFIG_SENSORS_TSL2550) += tsl2550.o |
23 | obj-$(CONFIG_MCU_MPC8349EMITX) += mcu_mpc8349emitx.o | 22 | obj-$(CONFIG_MCU_MPC8349EMITX) += mcu_mpc8349emitx.o |
24 | 23 | ||
diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig index 289d81adfb9c..83babb0a1df7 100644 --- a/drivers/usb/Kconfig +++ b/drivers/usb/Kconfig | |||
@@ -150,4 +150,6 @@ source "drivers/usb/atm/Kconfig" | |||
150 | 150 | ||
151 | source "drivers/usb/gadget/Kconfig" | 151 | source "drivers/usb/gadget/Kconfig" |
152 | 152 | ||
153 | source "drivers/usb/otg/Kconfig" | ||
154 | |||
153 | endif # USB_SUPPORT | 155 | endif # USB_SUPPORT |
diff --git a/drivers/usb/otg/Kconfig b/drivers/usb/otg/Kconfig new file mode 100644 index 000000000000..860342902bbb --- /dev/null +++ b/drivers/usb/otg/Kconfig | |||
@@ -0,0 +1,31 @@ | |||
1 | # | ||
2 | # USB OTG infrastructure may be needed for peripheral-only, host-only, | ||
3 | # or OTG-capable configurations when OTG transceivers or controllers | ||
4 | # are used. | ||
5 | # | ||
6 | |||
7 | comment "OTG and related infrastructure" | ||
8 | |||
9 | if USB || USB_GADGET | ||
10 | |||
11 | config USB_OTG_UTILS | ||
12 | bool | ||
13 | help | ||
14 | Select this to make sure the build includes objects from | ||
15 | the OTG infrastructure directory. | ||
16 | |||
17 | config ISP1301_OMAP | ||
18 | tristate "Philips ISP1301 with OMAP OTG" | ||
19 | depends on I2C && ARCH_OMAP_OTG | ||
20 | select USB_OTG_UTILS | ||
21 | help | ||
22 | If you say yes here you get support for the Philips ISP1301 | ||
23 | USB-On-The-Go transceiver working with the OMAP OTG controller. | ||
24 | The ISP1301 is a full speed USB transceiver which is used in | ||
25 | products including H2, H3, and H4 development boards for Texas | ||
26 | Instruments OMAP processors. | ||
27 | |||
28 | This driver can also be built as a module. If so, the module | ||
29 | will be called isp1301_omap. | ||
30 | |||
31 | endif # USB || OTG | ||
diff --git a/drivers/usb/otg/Makefile b/drivers/usb/otg/Makefile new file mode 100644 index 000000000000..483816685d00 --- /dev/null +++ b/drivers/usb/otg/Makefile | |||
@@ -0,0 +1,8 @@ | |||
1 | obj-$(CONFIG_ISP1301_OMAP) += isp1301_omap.o | ||
2 | |||
3 | ifeq ($(CONFIG_USB_DEBUG),y) | ||
4 | EXTRA_CFLAGS += -DDEBUG | ||
5 | else ifeq ($(CONFIG_USB_GADGET_DEBUG),y) | ||
6 | EXTRA_CFLAGS += -DDEBUG | ||
7 | endif | ||
8 | |||
diff --git a/drivers/i2c/chips/isp1301_omap.c b/drivers/usb/otg/isp1301_omap.c index e0d56ef2bcb0..e0d56ef2bcb0 100644 --- a/drivers/i2c/chips/isp1301_omap.c +++ b/drivers/usb/otg/isp1301_omap.c | |||