aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-4430sdp.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2011-01-11 18:31:45 -0500
committerTony Lindgren <tony@atomide.com>2011-01-13 11:01:41 -0500
commit7d4ca85a53bab1f6f9911411be38e0486a11187a (patch)
tree050d9627854085544c916ec2c6af02c63c3fe4a6 /arch/arm/mach-omap2/board-4430sdp.c
parent1bd9ef198498e3e00c9d78a1566338f7ea2e4bb5 (diff)
omap4: Fix ULPI PHY init for ES1.0 SDP
Commit 6aa85a5ae610106d89e50c7e1f760c56d12f9bc4 (omap4: 4430sdp: enable the ehci port on 4430SDP) added code to enable EHCI support on 4430sdp board. Looks like the ULPI pin does not seem to be muxed properly on ES1.0 SDP and this causes the system to reboot when the ULPI PHY is enabled. Fix this by muxing the pin, this is the same setting for both ES1.0 and ES2.0. Also add checking for gpio_request. Cc: Keshava Munegowda <keshava_mgowda@ti.com Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-4430sdp.c')
-rw-r--r--arch/arm/mach-omap2/board-4430sdp.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c
index a70bdf28e2bc..07d1b20b1148 100644
--- a/arch/arm/mach-omap2/board-4430sdp.c
+++ b/arch/arm/mach-omap2/board-4430sdp.c
@@ -554,6 +554,7 @@ static void __init omap_sfh7741prox_init(void)
554 554
555#ifdef CONFIG_OMAP_MUX 555#ifdef CONFIG_OMAP_MUX
556static struct omap_board_mux board_mux[] __initdata = { 556static struct omap_board_mux board_mux[] __initdata = {
557 OMAP4_MUX(USBB2_ULPITLL_CLK, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT),
557 { .reg_offset = OMAP_MUX_TERMINATOR }, 558 { .reg_offset = OMAP_MUX_TERMINATOR },
558}; 559};
559#else 560#else
@@ -576,11 +577,12 @@ static void __init omap_4430sdp_init(void)
576 omap4_twl6030_hsmmc_init(mmc); 577 omap4_twl6030_hsmmc_init(mmc);
577 578
578 /* Power on the ULPI PHY */ 579 /* Power on the ULPI PHY */
579 if (gpio_is_valid(OMAP4SDP_MDM_PWR_EN_GPIO)) { 580 status = gpio_request(OMAP4SDP_MDM_PWR_EN_GPIO, "USBB1 PHY VMDM_3V3");
580 /* FIXME: Assumes pad is already muxed for GPIO mode */ 581 if (status)
581 gpio_request(OMAP4SDP_MDM_PWR_EN_GPIO, "USBB1 PHY VMDM_3V3"); 582 pr_err("%s: Could not get USBB1 PHY GPIO\n", __func__);
583 else
582 gpio_direction_output(OMAP4SDP_MDM_PWR_EN_GPIO, 1); 584 gpio_direction_output(OMAP4SDP_MDM_PWR_EN_GPIO, 1);
583 } 585
584 usb_ehci_init(&ehci_pdata); 586 usb_ehci_init(&ehci_pdata);
585 usb_musb_init(&musb_board_data); 587 usb_musb_init(&musb_board_data);
586 588