]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
move drivers/i2c/chips/isp1301-omap.c
authorDavid Brownell <dbrownell@users.sourceforge.net>
Mon, 1 Dec 2008 21:15:53 +0000 (13:15 -0800)
committerTony Lindgren <tony@atomide.com>
Mon, 15 Dec 2008 19:10:18 +0000 (11:10 -0800)
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>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/Makefile
drivers/i2c/chips/Kconfig
drivers/i2c/chips/Makefile
drivers/usb/Kconfig
drivers/usb/otg/Kconfig [new file with mode: 0644]
drivers/usb/otg/Makefile [new file with mode: 0644]
drivers/usb/otg/isp1301_omap.c [moved from drivers/i2c/chips/isp1301_omap.c with 100% similarity]

index 022029badb1aa3f595159b5c902288b473fc4a1e..2b6949f3f581617456c2ffa1dcc5b76cc1b98216 100644 (file)
@@ -63,6 +63,7 @@ obj-$(CONFIG_ATA_OVER_ETH)    += block/aoe/
 obj-$(CONFIG_PARIDE)           += block/paride/
 obj-$(CONFIG_TC)               += tc/
 obj-$(CONFIG_UWB)              += uwb/
+obj-$(CONFIG_USB_OTG_UTILS)    += usb/otg/
 obj-$(CONFIG_USB)              += usb/
 obj-$(CONFIG_USB_MUSB_HDRC)    += usb/musb/
 obj-$(CONFIG_PCI)              += usb/
index 7404647adc2f3820b527970a802a031211122ee6..19424693fa9605cceb222df112393bb6a9fd2586 100644 (file)
@@ -114,18 +114,6 @@ config SENSORS_PCF8591
          These devices are hard to detect and rarely found on mainstream
          hardware.  If unsure, say N.
 
-config ISP1301_OMAP
-       tristate "Philips ISP1301 with OMAP OTG"
-       depends on ARCH_OMAP_OTG
-       help
-         If you say yes here you get support for the Philips ISP1301
-         USB-On-The-Go transceiver working with the OMAP OTG controller.
-         The ISP1301 is used in products including H2 and H3 development
-         boards for Texas Instruments OMAP processors.
-         
-         This driver can also be built as a module.  If so, the module
-         will be called isp1301_omap.
-
 config TPS65010
        tristate "TPS6501x Power Management chips"
        depends on GPIOLIB
index 7076c30221a09c3038a3489b51851acfd6821f4a..43ab153296cd363a442ad9b9136338c4d850f66a 100644 (file)
@@ -18,7 +18,6 @@ obj-$(CONFIG_SENSORS_PCA9539) += pca9539.o
 obj-$(CONFIG_SENSORS_PCF8574)  += pcf8574.o
 obj-$(CONFIG_PCF8575)          += pcf8575.o
 obj-$(CONFIG_SENSORS_PCF8591)  += pcf8591.o
-obj-$(CONFIG_ISP1301_OMAP)     += isp1301_omap.o
 obj-$(CONFIG_TPS65010)         += tps65010.o
 obj-$(CONFIG_MENELAUS)         += menelaus.o
 obj-$(CONFIG_SENSORS_TSL2550)  += tsl2550.o
index fa28fb6a6bdd0e45b7e19734dbde8cd6db14344d..a1afd505dab711e9978cb483053c27cbbdf29150 100644 (file)
@@ -151,4 +151,6 @@ source "drivers/usb/atm/Kconfig"
 
 source "drivers/usb/gadget/Kconfig"
 
+source "drivers/usb/otg/Kconfig"
+
 endif # USB_SUPPORT
diff --git a/drivers/usb/otg/Kconfig b/drivers/usb/otg/Kconfig
new file mode 100644 (file)
index 0000000..8603429
--- /dev/null
@@ -0,0 +1,31 @@
+#
+# USB OTG infrastructure may be needed for peripheral-only, host-only,
+# or OTG-capable configurations when OTG transceivers or controllers
+# are used.
+#
+
+comment "OTG and related infrastructure"
+
+if USB || USB_GADGET
+
+config USB_OTG_UTILS
+       bool
+       help
+         Select this to make sure the build includes objects from
+         the OTG infrastructure directory.
+
+config ISP1301_OMAP
+       tristate "Philips ISP1301 with OMAP OTG"
+       depends on I2C && ARCH_OMAP_OTG
+       select USB_OTG_UTILS
+       help
+         If you say yes here you get support for the Philips ISP1301
+         USB-On-The-Go transceiver working with the OMAP OTG controller.
+         The ISP1301 is a full speed USB  transceiver which is used in
+         products including H2, H3, and H4 development boards for Texas
+         Instruments OMAP processors.
+
+         This driver can also be built as a module.  If so, the module
+         will be called isp1301_omap.
+
+endif # USB || OTG
diff --git a/drivers/usb/otg/Makefile b/drivers/usb/otg/Makefile
new file mode 100644 (file)
index 0000000..4838166
--- /dev/null
@@ -0,0 +1,8 @@
+obj-$(CONFIG_ISP1301_OMAP)     += isp1301_omap.o
+
+ifeq ($(CONFIG_USB_DEBUG),y)
+EXTRA_CFLAGS += -DDEBUG
+else ifeq ($(CONFIG_USB_GADGET_DEBUG),y)
+EXTRA_CFLAGS += -DDEBUG
+endif
+