diff options
author | Andrew Lunn <andrew@lunn.ch> | 2012-04-06 11:17:26 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2012-05-08 19:33:55 -0400 |
commit | 4574b886698dfad6209102fed6136622b5fe1c21 (patch) | |
tree | 2f1deee540c68261f4531d09337a19a130a7ea45 /arch/arm/mach-kirkwood/common.c | |
parent | 2f129bf4aab684bef1e82e747b709a5025ecb698 (diff) |
ARM: Orion: SPI: Add clk/clkdev support.
Remove now redundant tclk from SPI platform data. This makes the platform
data empty, so remove it.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Jamie Lentin <jm@lentin.co.uk>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'arch/arm/mach-kirkwood/common.c')
-rw-r--r-- | arch/arm/mach-kirkwood/common.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c index 57b8d1ef3093..476e0b941db7 100644 --- a/arch/arm/mach-kirkwood/common.c +++ b/arch/arm/mach-kirkwood/common.c | |||
@@ -86,10 +86,12 @@ static struct clk __init *kirkwood_register_gate(const char *name, u8 bit_idx) | |||
86 | 86 | ||
87 | void __init kirkwood_clk_init(void) | 87 | void __init kirkwood_clk_init(void) |
88 | { | 88 | { |
89 | struct clk *runit; | ||
90 | |||
89 | tclk = clk_register_fixed_rate(NULL, "tclk", NULL, | 91 | tclk = clk_register_fixed_rate(NULL, "tclk", NULL, |
90 | CLK_IS_ROOT, kirkwood_tclk); | 92 | CLK_IS_ROOT, kirkwood_tclk); |
91 | 93 | ||
92 | kirkwood_register_gate("runit", CGC_BIT_RUNIT); | 94 | runit = kirkwood_register_gate("runit", CGC_BIT_RUNIT); |
93 | kirkwood_register_gate("ge0", CGC_BIT_GE0); | 95 | kirkwood_register_gate("ge0", CGC_BIT_GE0); |
94 | kirkwood_register_gate("ge1", CGC_BIT_GE1); | 96 | kirkwood_register_gate("ge1", CGC_BIT_GE1); |
95 | kirkwood_register_gate("sata0", CGC_BIT_SATA0); | 97 | kirkwood_register_gate("sata0", CGC_BIT_SATA0); |
@@ -104,6 +106,10 @@ void __init kirkwood_clk_init(void) | |||
104 | kirkwood_register_gate("audio", CGC_BIT_AUDIO); | 106 | kirkwood_register_gate("audio", CGC_BIT_AUDIO); |
105 | kirkwood_register_gate("tdm", CGC_BIT_TDM); | 107 | kirkwood_register_gate("tdm", CGC_BIT_TDM); |
106 | kirkwood_register_gate("tsu", CGC_BIT_TSU); | 108 | kirkwood_register_gate("tsu", CGC_BIT_TSU); |
109 | |||
110 | /* clkdev entries, mapping clks to devices */ | ||
111 | orion_clkdev_add(NULL, "orion_spi.0", runit); | ||
112 | orion_clkdev_add(NULL, "orion_spi.1", runit); | ||
107 | } | 113 | } |
108 | 114 | ||
109 | /***************************************************************************** | 115 | /***************************************************************************** |
@@ -270,7 +276,7 @@ void __init kirkwood_sdio_init(struct mvsdio_platform_data *mvsdio_data) | |||
270 | void __init kirkwood_spi_init() | 276 | void __init kirkwood_spi_init() |
271 | { | 277 | { |
272 | kirkwood_clk_ctrl |= CGC_RUNIT; | 278 | kirkwood_clk_ctrl |= CGC_RUNIT; |
273 | orion_spi_init(SPI_PHYS_BASE, kirkwood_tclk); | 279 | orion_spi_init(SPI_PHYS_BASE); |
274 | } | 280 | } |
275 | 281 | ||
276 | 282 | ||