public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP3: cm-t35: add EHCI support
@ 2009-10-14  8:15 Mike Rapoport
  2009-10-22 19:02 ` [APPLIED] " Tony Lindgren
  2009-10-23  7:26 ` Gadiyar, Anand
  0 siblings, 2 replies; 3+ messages in thread
From: Mike Rapoport @ 2009-10-14  8:15 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org

This patch adds support for EHCI on CM-T35.
It depends on basic CM-T35 board support ([1]) and EHCI updates
in the linux-omap tree.

[1] http://thread.gmane.org/gmane.linux.ports.arm.omap/24938
---

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
---
 arch/arm/mach-omap2/board-cm-t35.c |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c
index 94c1f35..1465892 100644
--- a/arch/arm/mach-omap2/board-cm-t35.c
+++ b/arch/arm/mach-omap2/board-cm-t35.c
@@ -352,6 +352,17 @@ static struct twl4030_hsmmc_info mmc[] = {
 	{}	/* Terminator */
 };

+static struct ehci_hcd_omap_platform_data ehci_pdata = {
+	.port_mode[0] = EHCI_HCD_OMAP_MODE_PHY,
+	.port_mode[1] = EHCI_HCD_OMAP_MODE_PHY,
+	.port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN,
+
+	.phy_reset  = true,
+	.reset_gpio_port[0]  = -EINVAL,
+	.reset_gpio_port[1]  = -EINVAL,
+	.reset_gpio_port[2]  = -EINVAL
+};
+
 static int cm_t35_twl_gpio_setup(struct device *dev, unsigned gpio,
 				 unsigned ngpio)
 {
@@ -377,6 +388,12 @@ static int cm_t35_twl_gpio_setup(struct device *dev, unsigned gpio,
 	cm_t35_vmmc1_supply.dev = mmc[0].dev;
 	cm_t35_vsim_supply.dev = mmc[0].dev;

+	/* setup USB with proper PHY reset GPIOs */
+	ehci_pdata.reset_gpio_port[0] = gpio + 6;
+	ehci_pdata.reset_gpio_port[1] = gpio + 7;
+
+	usb_ehci_init(&ehci_pdata);
+
 	return 0;
 }

-- 
1.6.0.6


-- 
Sincerely yours,
Mike.



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [APPLIED] [PATCH] ARM: OMAP3: cm-t35: add EHCI support
  2009-10-14  8:15 [PATCH] ARM: OMAP3: cm-t35: add EHCI support Mike Rapoport
@ 2009-10-22 19:02 ` Tony Lindgren
  2009-10-23  7:26 ` Gadiyar, Anand
  1 sibling, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2009-10-22 19:02 UTC (permalink / raw)
  To: linux-omap

This patch has been applied to the linux-omap
by youw fwiendly patch wobot.

Branch in linux-omap: ehci

Initial commit ID (Likely to change): 6a0dc193cf2e6055ffd9b1c34fa9f99e5836aabf

PatchWorks
http://patchwork.kernel.org/patch/53620/

Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=6a0dc193cf2e6055ffd9b1c34fa9f99e5836aabf



^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] ARM: OMAP3: cm-t35: add EHCI support
  2009-10-14  8:15 [PATCH] ARM: OMAP3: cm-t35: add EHCI support Mike Rapoport
  2009-10-22 19:02 ` [APPLIED] " Tony Lindgren
@ 2009-10-23  7:26 ` Gadiyar, Anand
  1 sibling, 0 replies; 3+ messages in thread
From: Gadiyar, Anand @ 2009-10-23  7:26 UTC (permalink / raw)
  To: Mike Rapoport, linux-omap@vger.kernel.org

> This patch adds support for EHCI on CM-T35.
> It depends on basic CM-T35 board support ([1]) and EHCI updates
> in the linux-omap tree.
> 
> [1] http://thread.gmane.org/gmane.linux.ports.arm.omap/24938
> ---
> 
> Signed-off-by: Mike Rapoport <mike@compulab.co.il>
> ---
>  arch/arm/mach-omap2/board-cm-t35.c |   17 +++++++++++++++++
>  1 files changed, 17 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c
> index 94c1f35..1465892 100644
> --- a/arch/arm/mach-omap2/board-cm-t35.c
> +++ b/arch/arm/mach-omap2/board-cm-t35.c
> @@ -352,6 +352,17 @@ static struct twl4030_hsmmc_info mmc[] = {
>  	{}	/* Terminator */
>  };
> 
> +static struct ehci_hcd_omap_platform_data ehci_pdata = {
> +	.port_mode[0] = EHCI_HCD_OMAP_MODE_PHY,
> +	.port_mode[1] = EHCI_HCD_OMAP_MODE_PHY,
> +	.port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN,
> +

I haven't been following l-o for a while - I just got back.
Is there a link to some documentation for this board (I'm just
curious about the EHCI connections)?

Are you using Port1 and Port2 both? What PHY is connected to
the ports?

> +	.phy_reset  = true,
> +	.reset_gpio_port[0]  = -EINVAL,
> +	.reset_gpio_port[1]  = -EINVAL,
> +	.reset_gpio_port[2]  = -EINVAL

You set these reset gpios below.
I guess you don't need to initialize them here.

- Anand

> +};
> +
>  static int cm_t35_twl_gpio_setup(struct device *dev, unsigned gpio,
>  				 unsigned ngpio)
>  {
> @@ -377,6 +388,12 @@ static int cm_t35_twl_gpio_setup(struct device *dev, unsigned gpio,
>  	cm_t35_vmmc1_supply.dev = mmc[0].dev;
>  	cm_t35_vsim_supply.dev = mmc[0].dev;
> 
> +	/* setup USB with proper PHY reset GPIOs */
> +	ehci_pdata.reset_gpio_port[0] = gpio + 6;
> +	ehci_pdata.reset_gpio_port[1] = gpio + 7;
> +
> +	usb_ehci_init(&ehci_pdata);
> +
>  	return 0;
>  }
> 
> -- 
> 1.6.0.6
> 
> 
> -- 
> Sincerely yours,
> Mike.
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-23  7:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-14  8:15 [PATCH] ARM: OMAP3: cm-t35: add EHCI support Mike Rapoport
2009-10-22 19:02 ` [APPLIED] " Tony Lindgren
2009-10-23  7:26 ` Gadiyar, Anand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox