davinci: USB clocks for Omapl138-Hawkboard
authorVictor Rodriguez <vm.rod25@gmail.com>
Mon, 27 Dec 2010 22:43:12 +0000 (16:43 -0600)
committerKevin Hilman <khilman@ti.com>
Mon, 28 Feb 2011 22:53:28 +0000 (14:53 -0800)
This patch adds USB1.1 and USB2.0 clocks for the Hawkboard-L138 system

Signed-off-by: Victor Rodriguez <vm.rod25@gmail.com>
Tested-by: Rene Gonzalez <renegs.2378@gmail.com>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-davinci/da850.c

index f55a60f34266fabe98553fc905b75980358a5c36..c7417a4caeaf3a207ed5f616534cbeb02d22f179 100644 (file)
@@ -345,6 +345,20 @@ static struct clk aemif_clk = {
        .flags          = ALWAYS_ENABLED,
 };
 
+static struct clk usb11_clk = {
+       .name           = "usb11",
+       .parent         = &pll0_sysclk4,
+       .lpsc           = DA8XX_LPSC1_USB11,
+       .gpsc           = 1,
+};
+
+static struct clk usb20_clk = {
+       .name           = "usb20",
+       .parent         = &pll0_sysclk2,
+       .lpsc           = DA8XX_LPSC1_USB20,
+       .gpsc           = 1,
+};
+
 static struct clk_lookup da850_clks[] = {
        CLK(NULL,               "ref",          &ref_clk),
        CLK(NULL,               "pll0",         &pll0_clk),
@@ -387,6 +401,8 @@ static struct clk_lookup da850_clks[] = {
        CLK("davinci_mmc.0",    NULL,           &mmcsd0_clk),
        CLK("davinci_mmc.1",    NULL,           &mmcsd1_clk),
        CLK(NULL,               "aemif",        &aemif_clk),
+       CLK(NULL,               "usb11",        &usb11_clk),
+       CLK(NULL,               "usb20",        &usb20_clk),
        CLK(NULL,               NULL,           NULL),
 };