Skip to contentSkip to conversation

OMAP: update mach/usb.h to allow ehci driver to build

PATCH In review Anand Gadiyar 2 participants 2 messages Nov 6, 2009 – Nov 11, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 OMAP: update mach/usb.h to allow ehci driver to build

OMAP: update mach/usb.h to allow ehci driver to build

Add missing declarations to allow the recently introduced ehci-omap driver to build on OMAP3

Cc Felipe Balbi <[email protected]>
Cc Tony Lindgren <[email protected]>

---
Tony says he's okay with this patch going through the linux-usb list.

This patch and the next one are required to build this driver.

I've based these patches on current Linus' tree plus your usb patch queue (gregkh-07-usb-2.6.32-rc6.patch).

 arch/arm/plat-omap/include/mach/usb.h |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)
arch/arm/plat-omap/include/mach/usb.h +17 -0
Index: linux-2.6/arch/arm/plat-omap/include/mach/usb.h
===================================================================
@@ -5,6 +5,21 @@
 
 #include <mach/board.h>
 
+#define OMAP3_HS_USB_PORTS	3
+enum ehci_hcd_omap_mode {
+	EHCI_HCD_OMAP_MODE_UNKNOWN,
+	EHCI_HCD_OMAP_MODE_PHY,
+	EHCI_HCD_OMAP_MODE_TLL,
+};
+
+struct ehci_hcd_omap_platform_data {
+	enum ehci_hcd_omap_mode		port_mode[OMAP3_HS_USB_PORTS];
+	unsigned			phy_reset:1;
+
+	/* have to be valid if phy_reset is true and portx is in phy mode */
+	int	reset_gpio_port[OMAP3_HS_USB_PORTS];
+};
+
 /*-------------------------------------------------------------------------*/
 
 #define OMAP1_OTG_BASE			0xfffb0400
@@ -29,6 +44,8 @@
 
 extern void usb_musb_init(void);
 
+extern void usb_ehci_init(struct ehci_hcd_omap_platform_data *pdata);
+
 #endif
 
 void omap_usb_init(struct omap_usb_config *pdata);
#1 lore raw

Hi expert,

Do you have experience about the Power supply about OMAP3530? It seems the power supply is not very good, some time I need add powered hub to recognize some usb devices on MHCI host. Can you give me any clue? where I should go the check with?

Thanks,
Jung T K

2009/11/7 Anand Gadiyar <[email protected]>:

Quoted 55 lines

OMAP: update mach/usb.h to allow ehci driver to build

Add missing declarations to allow the recently introduced ehci-omap driver to build on OMAP3

Cc Felipe Balbi <[email protected]>
Cc Tony Lindgren <[email protected]>

---
Tony says he's okay with this patch going through the linux-usb list.

This patch and the next one are required to build this driver.

I've based these patches on current Linus' tree plus your usb patch queue (gregkh-07-usb-2.6.32-rc6.patch).

 arch/arm/plat-omap/include/mach/usb.h |   17 +++++++++++++++++

 1 file changed, 17 insertions(+)

Index: linux-2.6/arch/arm/plat-omap/include/mach/usb.h
===================================================================

arch/arm/plat-omap/include/mach/usb.h     2009-11-06 04:38:47.000000000 -0800 renamed from arch/arm/plat-omap/include/mach/usb.h        2009-11-06 04:38:40.000000000 -0800 +17 -1
@@ -5,6 +5,21 @@
 
  #include <mach/board.h>
 
+#define OMAP3_HS_USB_PORTS     3
+enum ehci_hcd_omap_mode {
+       EHCI_HCD_OMAP_MODE_UNKNOWN,
+       EHCI_HCD_OMAP_MODE_PHY,
+       EHCI_HCD_OMAP_MODE_TLL,
+};
+
+struct ehci_hcd_omap_platform_data {
+       enum ehci_hcd_omap_mode         port_mode[OMAP3_HS_USB_PORTS];
+       unsigned                        phy_reset:1;
+
+       /* have to be valid if phy_reset is true and portx is in phy mode */
+       int     reset_gpio_port[OMAP3_HS_USB_PORTS];
+};
+
  /*-------------------------------------------------------------------------*/
 
  #define OMAP1_OTG_BASE                 0xfffb0400
@@ -29,6 +44,8 @@
 
  extern void usb_musb_init(void);
 
+extern void usb_ehci_init(struct ehci_hcd_omap_platform_data *pdata);
+
  #endif
 
  void omap_usb_init(struct omap_usb_config *pdata);
--
Quoted 4 lines

To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html