diff options
author | Scott Jiang <scott.jiang.linux@gmail.com> | 2014-04-04 23:29:09 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-14 12:45:25 -0400 |
commit | c34cc2487d5e6c225609696db3f49d40259787e2 (patch) | |
tree | afbbcacc5f20ac2aab6e4d71df986ea01f4dde2c /arch/blackfin | |
parent | 766e3721990d2c78e0d614b57753f105adbaa8c5 (diff) |
spi: spi-adi-v3: convert to use common clk framework
Use common clk api to get spi clock.
Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/mach-bf609/clock.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf609/clock.c b/arch/blackfin/mach-bf609/clock.c index 56200f37cfc8..244fa4ab4c56 100644 --- a/arch/blackfin/mach-bf609/clock.c +++ b/arch/blackfin/mach-bf609/clock.c | |||
@@ -363,6 +363,12 @@ static struct clk ethclk = { | |||
363 | .ops = &dummy_clk_ops, | 363 | .ops = &dummy_clk_ops, |
364 | }; | 364 | }; |
365 | 365 | ||
366 | static struct clk spiclk = { | ||
367 | .name = "spi", | ||
368 | .parent = &sclk1, | ||
369 | .ops = &dummy_clk_ops, | ||
370 | }; | ||
371 | |||
366 | static struct clk_lookup bf609_clks[] = { | 372 | static struct clk_lookup bf609_clks[] = { |
367 | CLK(sys_clkin, NULL, "SYS_CLKIN"), | 373 | CLK(sys_clkin, NULL, "SYS_CLKIN"), |
368 | CLK(pll_clk, NULL, "PLLCLK"), | 374 | CLK(pll_clk, NULL, "PLLCLK"), |
@@ -375,6 +381,7 @@ static struct clk_lookup bf609_clks[] = { | |||
375 | CLK(dclk, NULL, "DCLK"), | 381 | CLK(dclk, NULL, "DCLK"), |
376 | CLK(oclk, NULL, "OCLK"), | 382 | CLK(oclk, NULL, "OCLK"), |
377 | CLK(ethclk, NULL, "stmmaceth"), | 383 | CLK(ethclk, NULL, "stmmaceth"), |
384 | CLK(spiclk, NULL, "spi"), | ||
378 | }; | 385 | }; |
379 | 386 | ||
380 | int __init clk_init(void) | 387 | int __init clk_init(void) |