mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 03:50:54 +07:00
omap4: Fix ULPI PHY init for ES1.0 SDP
Commit 6aa85a5ae6
(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>
This commit is contained in:
parent
1bd9ef1984
commit
7d4ca85a53
@ -554,6 +554,7 @@ static void __init omap_sfh7741prox_init(void)
|
|||||||
|
|
||||||
#ifdef CONFIG_OMAP_MUX
|
#ifdef CONFIG_OMAP_MUX
|
||||||
static struct omap_board_mux board_mux[] __initdata = {
|
static struct omap_board_mux board_mux[] __initdata = {
|
||||||
|
OMAP4_MUX(USBB2_ULPITLL_CLK, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT),
|
||||||
{ .reg_offset = OMAP_MUX_TERMINATOR },
|
{ .reg_offset = OMAP_MUX_TERMINATOR },
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
@ -576,11 +577,12 @@ static void __init omap_4430sdp_init(void)
|
|||||||
omap4_twl6030_hsmmc_init(mmc);
|
omap4_twl6030_hsmmc_init(mmc);
|
||||||
|
|
||||||
/* Power on the ULPI PHY */
|
/* Power on the ULPI PHY */
|
||||||
if (gpio_is_valid(OMAP4SDP_MDM_PWR_EN_GPIO)) {
|
status = gpio_request(OMAP4SDP_MDM_PWR_EN_GPIO, "USBB1 PHY VMDM_3V3");
|
||||||
/* FIXME: Assumes pad is already muxed for GPIO mode */
|
if (status)
|
||||||
gpio_request(OMAP4SDP_MDM_PWR_EN_GPIO, "USBB1 PHY VMDM_3V3");
|
pr_err("%s: Could not get USBB1 PHY GPIO\n", __func__);
|
||||||
|
else
|
||||||
gpio_direction_output(OMAP4SDP_MDM_PWR_EN_GPIO, 1);
|
gpio_direction_output(OMAP4SDP_MDM_PWR_EN_GPIO, 1);
|
||||||
}
|
|
||||||
usb_ehci_init(&ehci_pdata);
|
usb_ehci_init(&ehci_pdata);
|
||||||
usb_musb_init(&musb_board_data);
|
usb_musb_init(&musb_board_data);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user