summaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorScott Jiang <scott.jiang.linux@gmail.com>2014-04-05 11:29:09 +0800
committerMark Brown <broonie@linaro.org>2014-04-14 17:45:25 +0100
commitc34cc2487d5e6c225609696db3f49d40259787e2 (patch)
treeafbbcacc5f20ac2aab6e4d71df986ea01f4dde2c /arch/blackfin
parent766e3721990d2c78e0d614b57753f105adbaa8c5 (diff)
downloadblackbird-op-linux-c34cc2487d5e6c225609696db3f49d40259787e2.tar.gz
blackbird-op-linux-c34cc2487d5e6c225609696db3f49d40259787e2.zip
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.c7
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 = {
.ops = &dummy_clk_ops,
};
+static struct clk spiclk = {
+ .name = "spi",
+ .parent = &sclk1,
+ .ops = &dummy_clk_ops,
+};
+
static struct clk_lookup bf609_clks[] = {
CLK(sys_clkin, NULL, "SYS_CLKIN"),
CLK(pll_clk, NULL, "PLLCLK"),
@@ -375,6 +381,7 @@ static struct clk_lookup bf609_clks[] = {
CLK(dclk, NULL, "DCLK"),
CLK(oclk, NULL, "OCLK"),
CLK(ethclk, NULL, "stmmaceth"),
+ CLK(spiclk, NULL, "spi"),
};
int __init clk_init(void)
OpenPOWER on IntegriCloud