Commit 46fc3296 authored by Jonathan McDowell's avatar Jonathan McDowell Committed by Tony Lindgren

[PATCH] ARM: OMAP: Fix USB host on 1510/5910

The OMAP5910 datasheet says that the lb clock needs enabled for USB
to work, so it seems reasonable that this is required.
parent 40d3d73c
...@@ -80,8 +80,15 @@ static struct omap_uart_config ams_delta_uart_config __initdata = { ...@@ -80,8 +80,15 @@ static struct omap_uart_config ams_delta_uart_config __initdata = {
.enabled_uarts = 1, .enabled_uarts = 1,
}; };
static struct omap_usb_config ams_delta_usb_config __initdata = {
.register_host = 1,
.hmc_mode = 16,
.pins[0] = 2,
};
static struct omap_board_config_kernel ams_delta_config[] = { static struct omap_board_config_kernel ams_delta_config[] = {
{ OMAP_TAG_UART, &ams_delta_uart_config }, { OMAP_TAG_UART, &ams_delta_uart_config },
{ OMAP_TAG_USB, &ams_delta_usb_config },
}; };
static void __init ams_delta_init(void) static void __init ams_delta_init(void)
......
...@@ -353,7 +353,11 @@ int usb_hcd_omap_probe (const struct hc_driver *driver, ...@@ -353,7 +353,11 @@ int usb_hcd_omap_probe (const struct hc_driver *driver,
if (IS_ERR(usb_host_ck)) if (IS_ERR(usb_host_ck))
return PTR_ERR(usb_host_ck); return PTR_ERR(usb_host_ck);
if (!cpu_is_omap1510())
usb_dc_ck = clk_get(0, "usb_dc_ck"); usb_dc_ck = clk_get(0, "usb_dc_ck");
else
usb_dc_ck = clk_get(0, "lb_ck");
if (IS_ERR(usb_dc_ck)) { if (IS_ERR(usb_dc_ck)) {
clk_put(usb_host_ck); clk_put(usb_host_ck);
return PTR_ERR(usb_dc_ck); return PTR_ERR(usb_dc_ck);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment