* [PATCH] omap4: 4430sdp: enable the ehci port on 4430SDP
@ 2010-11-21 18:43 Anand Gadiyar
2010-11-22 10:17 ` Felipe Balbi
0 siblings, 1 reply; 5+ messages in thread
From: Anand Gadiyar @ 2010-11-21 18:43 UTC (permalink / raw)
To: linux-omap; +Cc: Keshava Munegowda, Anand Gadiyar, Tony Lindgren
From: Keshava Munegowda <keshava_mgowda@ti.com>
Signed-off-by: Keshava Munegowda <keshava_mgowda@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
---
Depends on the series I just sent out for adding OMAP4 ehci support,
but can be applied independently of that.
arch/arm/mach-omap2/board-4430sdp.c | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c
index df5a425..d7cb968 100644
--- a/arch/arm/mach-omap2/board-4430sdp.c
+++ b/arch/arm/mach-omap2/board-4430sdp.c
@@ -42,6 +42,7 @@
#define ETH_KS8851_IRQ 34
#define ETH_KS8851_POWER_ON 48
#define ETH_KS8851_QUART 138
+#define OMAP4SDP_MDM_PWR_EN_GPIO 157
#define OMAP4_SFH7741_SENSOR_OUTPUT_GPIO 184
#define OMAP4_SFH7741_ENABLE_GPIO 188
@@ -225,6 +226,16 @@ static void __init omap_4430sdp_init_irq(void)
omap_gpio_init();
}
+static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = {
+ .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY,
+ .port_mode[1] = EHCI_HCD_OMAP_MODE_UNKNOWN,
+ .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN,
+ .phy_reset = false,
+ .reset_gpio_port[0] = -EINVAL,
+ .reset_gpio_port[1] = -EINVAL,
+ .reset_gpio_port[2] = -EINVAL,
+};
+
static struct omap_musb_board_data musb_board_data = {
.interface_type = MUSB_INTERFACE_UTMI,
.mode = MUSB_PERIPHERAL,
@@ -514,6 +525,15 @@ static void __init omap_4430sdp_init(void)
platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices));
omap_serial_init();
omap4_twl6030_hsmmc_init(mmc);
+
+ /* Power on the ULPI PHY */
+ if (gpio_is_valid(OMAP4SDP_MDM_PWR_EN_GPIO)) {
+ /* FIXME: Assumes pad is already muxed for GPIO mode */
+ gpio_request(OMAP4SDP_MDM_PWR_EN_GPIO, "USBB1 PHY VMDM_3V3");
+ gpio_direction_output(OMAP4SDP_MDM_PWR_EN_GPIO, 1);
+ }
+ usb_ehci_init(&ehci_pdata);
+
/* OMAP4 SDP uses internal transceiver so register nop transceiver */
usb_nop_xceiv_register();
/* FIXME: allow multi-omap to boot until musb is updated for omap4 */
--
1.7.0.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] omap4: 4430sdp: enable the ehci port on 4430SDP
2010-11-21 18:43 [PATCH] omap4: 4430sdp: enable the ehci port on 4430SDP Anand Gadiyar
@ 2010-11-22 10:17 ` Felipe Balbi
2010-11-22 11:54 ` Anand Gadiyar
0 siblings, 1 reply; 5+ messages in thread
From: Felipe Balbi @ 2010-11-22 10:17 UTC (permalink / raw)
To: Anand Gadiyar; +Cc: linux-omap, Keshava Munegowda, Tony Lindgren
On Mon, Nov 22, 2010 at 12:13:19AM +0530, Anand Gadiyar wrote:
>From: Keshava Munegowda <keshava_mgowda@ti.com>
>
>Signed-off-by: Keshava Munegowda <keshava_mgowda@ti.com>
>Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
>Cc: Tony Lindgren <tony@atomide.com>
Tony, if you give me your Ack I can take this with Greg since it depends
on the series I'm checking now.
--
balbi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] omap4: 4430sdp: enable the ehci port on 4430SDP
2010-11-22 10:17 ` Felipe Balbi
@ 2010-11-22 11:54 ` Anand Gadiyar
2010-11-22 12:06 ` Felipe Balbi
0 siblings, 1 reply; 5+ messages in thread
From: Anand Gadiyar @ 2010-11-22 11:54 UTC (permalink / raw)
To: balbi; +Cc: linux-omap, Keshava Munegowda, Tony Lindgren
On 11/22/2010 3:47 PM, Felipe Balbi wrote:
> On Mon, Nov 22, 2010 at 12:13:19AM +0530, Anand Gadiyar wrote:
>> From: Keshava Munegowda <keshava_mgowda@ti.com>
>>
>> Signed-off-by: Keshava Munegowda <keshava_mgowda@ti.com>
>> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
>> Cc: Tony Lindgren <tony@atomide.com>
>
> Tony, if you give me your Ack I can take this with Greg since it depends
> on the series I'm checking now.
>
This one can go through Tony - I deliberately left it out of the EHCI series.
The dependency is needed for the EHCI port to actually be usable, however we
can register the device in the board file independently of the driver.
I forgot to update the patch description - I'll wait some more for any
more comments and then repost with a proper description.
- Anand
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] omap4: 4430sdp: enable the ehci port on 4430SDP
2010-11-22 11:54 ` Anand Gadiyar
@ 2010-11-22 12:06 ` Felipe Balbi
2010-11-30 18:25 ` Tony Lindgren
0 siblings, 1 reply; 5+ messages in thread
From: Felipe Balbi @ 2010-11-22 12:06 UTC (permalink / raw)
To: Anand Gadiyar; +Cc: balbi, linux-omap, Keshava Munegowda, Tony Lindgren
On Mon, Nov 22, 2010 at 05:24:08PM +0530, Anand Gadiyar wrote:
>On 11/22/2010 3:47 PM, Felipe Balbi wrote:
>> On Mon, Nov 22, 2010 at 12:13:19AM +0530, Anand Gadiyar wrote:
>>> From: Keshava Munegowda <keshava_mgowda@ti.com>
>>>
>>> Signed-off-by: Keshava Munegowda <keshava_mgowda@ti.com>
>>> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
>>> Cc: Tony Lindgren <tony@atomide.com>
>>
>> Tony, if you give me your Ack I can take this with Greg since it depends
>> on the series I'm checking now.
>>
>
>This one can go through Tony - I deliberately left it out of the EHCI series.
>
>The dependency is needed for the EHCI port to actually be usable, however we
>can register the device in the board file independently of the driver.
>
>I forgot to update the patch description - I'll wait some more for any
>more comments and then repost with a proper description.
Ok, so it's Tony's call now. Tony, if you want to take this together
with OMAP changes, just let me know and I'll drop this patch from my
branch, if you want me to take it through Greg, then give me an Acked-by
:-)
--
balbi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] omap4: 4430sdp: enable the ehci port on 4430SDP
2010-11-22 12:06 ` Felipe Balbi
@ 2010-11-30 18:25 ` Tony Lindgren
0 siblings, 0 replies; 5+ messages in thread
From: Tony Lindgren @ 2010-11-30 18:25 UTC (permalink / raw)
To: Felipe Balbi; +Cc: Anand Gadiyar, linux-omap, Keshava Munegowda
* Felipe Balbi <balbi@ti.com> [101122 03:56]:
> On Mon, Nov 22, 2010 at 05:24:08PM +0530, Anand Gadiyar wrote:
> >On 11/22/2010 3:47 PM, Felipe Balbi wrote:
> >>On Mon, Nov 22, 2010 at 12:13:19AM +0530, Anand Gadiyar wrote:
> >>>From: Keshava Munegowda <keshava_mgowda@ti.com>
> >>>
> >>>Signed-off-by: Keshava Munegowda <keshava_mgowda@ti.com>
> >>>Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
> >>>Cc: Tony Lindgren <tony@atomide.com>
> >>
> >>Tony, if you give me your Ack I can take this with Greg since it depends
> >>on the series I'm checking now.
> >>
> >
> >This one can go through Tony - I deliberately left it out of the EHCI series.
> >
> >The dependency is needed for the EHCI port to actually be usable, however we
> >can register the device in the board file independently of the driver.
> >
> >I forgot to update the patch description - I'll wait some more for any
> >more comments and then repost with a proper description.
>
> Ok, so it's Tony's call now. Tony, if you want to take this together
> with OMAP changes, just let me know and I'll drop this patch from my
> branch, if you want me to take it through Greg, then give me an Acked-by
> :-)
No please keep it along with the other USB patches:
Acked-by: Tony Lindgren <tony@atomide.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-11-30 18:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-21 18:43 [PATCH] omap4: 4430sdp: enable the ehci port on 4430SDP Anand Gadiyar
2010-11-22 10:17 ` Felipe Balbi
2010-11-22 11:54 ` Anand Gadiyar
2010-11-22 12:06 ` Felipe Balbi
2010-11-30 18:25 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox