diff options
author | Michael Williamson <michael.williamson@criticallink.com> | 2011-02-22 08:37:00 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-03-11 13:48:28 -0500 |
commit | 12d35cf374a2ca116481d2bc2dcf6f89854646dd (patch) | |
tree | 6d2c1065739dc68b67592d982ed71f8e2f947b00 /arch/arm/mach-davinci/da850.c | |
parent | 4918b40dc8b0e3addf3178f2dded99e149f5ad31 (diff) |
davinci: da850: add spi device clock definitions
Add spi clock information for da850.
Signed-off-by: Michael Williamson <michael.williamson@criticallink.com>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/da850.c')
-rw-r--r-- | arch/arm/mach-davinci/da850.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 3443d9725265..68fe4c289d77 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c | |||
@@ -359,6 +359,20 @@ static struct clk usb20_clk = { | |||
359 | .gpsc = 1, | 359 | .gpsc = 1, |
360 | }; | 360 | }; |
361 | 361 | ||
362 | static struct clk spi0_clk = { | ||
363 | .name = "spi0", | ||
364 | .parent = &pll0_sysclk2, | ||
365 | .lpsc = DA8XX_LPSC0_SPI0, | ||
366 | }; | ||
367 | |||
368 | static struct clk spi1_clk = { | ||
369 | .name = "spi1", | ||
370 | .parent = &pll0_sysclk2, | ||
371 | .lpsc = DA8XX_LPSC1_SPI1, | ||
372 | .gpsc = 1, | ||
373 | .flags = DA850_CLK_ASYNC3, | ||
374 | }; | ||
375 | |||
362 | static struct clk_lookup da850_clks[] = { | 376 | static struct clk_lookup da850_clks[] = { |
363 | CLK(NULL, "ref", &ref_clk), | 377 | CLK(NULL, "ref", &ref_clk), |
364 | CLK(NULL, "pll0", &pll0_clk), | 378 | CLK(NULL, "pll0", &pll0_clk), |
@@ -403,6 +417,8 @@ static struct clk_lookup da850_clks[] = { | |||
403 | CLK(NULL, "aemif", &aemif_clk), | 417 | CLK(NULL, "aemif", &aemif_clk), |
404 | CLK(NULL, "usb11", &usb11_clk), | 418 | CLK(NULL, "usb11", &usb11_clk), |
405 | CLK(NULL, "usb20", &usb20_clk), | 419 | CLK(NULL, "usb20", &usb20_clk), |
420 | CLK("spi_davinci.0", NULL, &spi0_clk), | ||
421 | CLK("spi_davinci.1", NULL, &spi1_clk), | ||
406 | CLK(NULL, NULL, NULL), | 422 | CLK(NULL, NULL, NULL), |
407 | }; | 423 | }; |
408 | 424 | ||