Commit b7f8fa44 authored by David Brownell's avatar David Brownell Committed by Kevin Hilman

usb clock update

Let musb_hdrc on DaVinci use the clock framework, now that it
seems to work right.

 * add USBCLK to dm644x support (it's already there for dm355)
 * only enable it when the driver asks for that
 * make the musb_hdrc driver use that clock

The original failures seem to have been caused by really buggy code
implementing the clock APIs.  Now they're working right.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent 132fc451
...@@ -317,6 +317,11 @@ static struct clk davinci_clks[] = { ...@@ -317,6 +317,11 @@ static struct clk davinci_clks[] = {
.rate = &commonrate, .rate = &commonrate,
.lpsc = DAVINCI_LPSC_GPIO, .lpsc = DAVINCI_LPSC_GPIO,
}, },
{
.name = "USBCLK",
.rate = &commonrate,
.lpsc = DAVINCI_LPSC_USB,
},
{ {
.name = "AEMIFCLK", .name = "AEMIFCLK",
.rate = &commonrate, .rate = &commonrate,
......
...@@ -218,8 +218,6 @@ void __init davinci_psc_init(void) ...@@ -218,8 +218,6 @@ void __init davinci_psc_init(void)
DAVINCI_LPSC_TPTC1, 1); DAVINCI_LPSC_TPTC1, 1);
davinci_psc_config(DAVINCI_GPSC_ARMDOMAIN, davinci_psc_config(DAVINCI_GPSC_ARMDOMAIN,
DAVINCI_LPSC_GPIO, 1); DAVINCI_LPSC_GPIO, 1);
davinci_psc_config(DAVINCI_GPSC_ARMDOMAIN,
DAVINCI_LPSC_USB, 1);
/* Turn on WatchDog timer LPSC. Needed for RESET to work */ /* Turn on WatchDog timer LPSC. Needed for RESET to work */
davinci_psc_config(DAVINCI_GPSC_ARMDOMAIN, davinci_psc_config(DAVINCI_GPSC_ARMDOMAIN,
......
...@@ -48,6 +48,7 @@ static struct musb_hdrc_platform_data usb_data = { ...@@ -48,6 +48,7 @@ static struct musb_hdrc_platform_data usb_data = {
#elif defined(CONFIG_USB_MUSB_HOST) #elif defined(CONFIG_USB_MUSB_HOST)
.mode = MUSB_HOST, .mode = MUSB_HOST,
#endif #endif
.clock = "USBCLK",
.config = &musb_config, .config = &musb_config,
}; };
......
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