diff options
author | Roger Quadros <rogerq@ti.com> | 2013-03-20 11:44:48 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-04-02 12:59:56 -0400 |
commit | 59b1499a702f3fb0e0571580a97a5d72023b8f53 (patch) | |
tree | 4334029186decd22125c36495ca487770c322b73 | |
parent | 9413624c25c9cde60482a6b7e343f49b8d6eb0dc (diff) |
ARM: OMAP3: cm-t35: Adapt to ehci-omap changes
Use usbhs_init_phys() to register the PHY's RESET regulators
and the NOP PHY devices.
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/board-cm-t35.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index af2bb219e214..7fda3f5f8a7f 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -419,15 +419,22 @@ static struct omap2_hsmmc_info mmc[] = { | |||
419 | {} /* Terminator */ | 419 | {} /* Terminator */ |
420 | }; | 420 | }; |
421 | 421 | ||
422 | static struct usbhs_phy_data phy_data[] __initdata = { | ||
423 | { | ||
424 | .port = 1, | ||
425 | .reset_gpio = OMAP_MAX_GPIO_LINES + 6, | ||
426 | .vcc_gpio = -EINVAL, | ||
427 | }, | ||
428 | { | ||
429 | .port = 2, | ||
430 | .reset_gpio = OMAP_MAX_GPIO_LINES + 7, | ||
431 | .vcc_gpio = -EINVAL, | ||
432 | }, | ||
433 | }; | ||
434 | |||
422 | static struct usbhs_omap_platform_data usbhs_bdata __initdata = { | 435 | static struct usbhs_omap_platform_data usbhs_bdata __initdata = { |
423 | .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, | 436 | .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, |
424 | .port_mode[1] = OMAP_EHCI_PORT_MODE_PHY, | 437 | .port_mode[1] = OMAP_EHCI_PORT_MODE_PHY, |
425 | .port_mode[2] = OMAP_USBHS_PORT_MODE_UNUSED, | ||
426 | |||
427 | .phy_reset = true, | ||
428 | .reset_gpio_port[0] = OMAP_MAX_GPIO_LINES + 6, | ||
429 | .reset_gpio_port[1] = OMAP_MAX_GPIO_LINES + 7, | ||
430 | .reset_gpio_port[2] = -EINVAL | ||
431 | }; | 438 | }; |
432 | 439 | ||
433 | static void __init cm_t35_init_usbh(void) | 440 | static void __init cm_t35_init_usbh(void) |
@@ -444,6 +451,7 @@ static void __init cm_t35_init_usbh(void) | |||
444 | msleep(1); | 451 | msleep(1); |
445 | } | 452 | } |
446 | 453 | ||
454 | usbhs_init_phys(phy_data, ARRAY_SIZE(phy_data)); | ||
447 | usbhs_init(&usbhs_bdata); | 455 | usbhs_init(&usbhs_bdata); |
448 | } | 456 | } |
449 | 457 | ||