diff options
author | Roger Quadros <rogerq@ti.com> | 2013-03-20 11:44:45 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-04-02 12:59:54 -0400 |
commit | 63e135a75ff41cc9ee1ac4012c505d46544dc10e (patch) | |
tree | 5629134c13b014c34111b36661dd6a45d4bc1ec4 /arch/arm/mach-omap2 | |
parent | 0047c909fbde59b6c90cb925bbfe1098d3796c2e (diff) |
ARM: OMAP3: 3630SDP: 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>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/board-3630sdp.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/board-3630sdp.c b/arch/arm/mach-omap2/board-3630sdp.c index 67447bd4564f..20d6d8189240 100644 --- a/arch/arm/mach-omap2/board-3630sdp.c +++ b/arch/arm/mach-omap2/board-3630sdp.c | |||
@@ -53,16 +53,23 @@ static void enable_board_wakeup_source(void) | |||
53 | OMAP_WAKEUP_EN | OMAP_PIN_INPUT_PULLUP); | 53 | OMAP_WAKEUP_EN | OMAP_PIN_INPUT_PULLUP); |
54 | } | 54 | } |
55 | 55 | ||
56 | static struct usbhs_phy_data phy_data[] __initdata = { | ||
57 | { | ||
58 | .port = 1, | ||
59 | .reset_gpio = 126, | ||
60 | .vcc_gpio = -EINVAL, | ||
61 | }, | ||
62 | { | ||
63 | .port = 2, | ||
64 | .reset_gpio = 61, | ||
65 | .vcc_gpio = -EINVAL, | ||
66 | }, | ||
67 | }; | ||
68 | |||
56 | static struct usbhs_omap_platform_data usbhs_bdata __initdata = { | 69 | static struct usbhs_omap_platform_data usbhs_bdata __initdata = { |
57 | 70 | ||
58 | .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, | 71 | .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, |
59 | .port_mode[1] = OMAP_EHCI_PORT_MODE_PHY, | 72 | .port_mode[1] = OMAP_EHCI_PORT_MODE_PHY, |
60 | .port_mode[2] = OMAP_USBHS_PORT_MODE_UNUSED, | ||
61 | |||
62 | .phy_reset = true, | ||
63 | .reset_gpio_port[0] = 126, | ||
64 | .reset_gpio_port[1] = 61, | ||
65 | .reset_gpio_port[2] = -EINVAL | ||
66 | }; | 73 | }; |
67 | 74 | ||
68 | #ifdef CONFIG_OMAP_MUX | 75 | #ifdef CONFIG_OMAP_MUX |
@@ -199,6 +206,8 @@ static void __init omap_sdp_init(void) | |||
199 | board_smc91x_init(); | 206 | board_smc91x_init(); |
200 | board_flash_init(sdp_flash_partitions, chip_sel_sdp, NAND_BUSWIDTH_16); | 207 | board_flash_init(sdp_flash_partitions, chip_sel_sdp, NAND_BUSWIDTH_16); |
201 | enable_board_wakeup_source(); | 208 | enable_board_wakeup_source(); |
209 | |||
210 | usbhs_init_phys(phy_data, ARRAY_SIZE(phy_data)); | ||
202 | usbhs_init(&usbhs_bdata); | 211 | usbhs_init(&usbhs_bdata); |
203 | } | 212 | } |
204 | 213 | ||