aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-04-16 15:38:29 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-05-12 15:49:56 -0400
commit6e2b07a172b6ed98c7cdc301333b2d9f86c11880 (patch)
treedcc6d0272e2f168364b0a5ec69f0ff8f4fabbd9e /drivers/clk
parentc7785ea0d279322bf92107d9a4fee195f5148c08 (diff)
ARM: nomadik: convert all clocks except timer to dt
This moves all Nomadik clocks except the one used for the timer/clocksource over to the device tree. Acked-by: Mike Turquette <mturquette@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/clk-nomadik.c26
1 files changed, 7 insertions, 19 deletions
diff --git a/drivers/clk/clk-nomadik.c b/drivers/clk/clk-nomadik.c
index 6b4c70f7d23d..19f197ccf28d 100644
--- a/drivers/clk/clk-nomadik.c
+++ b/drivers/clk/clk-nomadik.c
@@ -3,24 +3,24 @@
3#include <linux/err.h> 3#include <linux/err.h>
4#include <linux/io.h> 4#include <linux/io.h>
5#include <linux/clk-provider.h> 5#include <linux/clk-provider.h>
6#include <linux/of.h>
6 7
7/* 8/*
8 * The Nomadik clock tree is described in the STN8815A12 DB V4.2 9 * The Nomadik clock tree is described in the STN8815A12 DB V4.2
9 * reference manual for the chip, page 94 ff. 10 * reference manual for the chip, page 94 ff.
10 */ 11 */
11 12
13static const __initconst struct of_device_id cpu8815_clk_match[] = {
14 { .compatible = "fixed-clock", .data = of_fixed_clk_setup, },
15 { /* sentinel */ }
16};
17
12void __init nomadik_clk_init(void) 18void __init nomadik_clk_init(void)
13{ 19{
14 struct clk *clk; 20 struct clk *clk;
15 21
16 clk = clk_register_fixed_rate(NULL, "apb_pclk", NULL, CLK_IS_ROOT, 0); 22 clk = clk_register_fixed_rate(NULL, "apb_pclk", NULL, CLK_IS_ROOT, 0);
17 clk_register_clkdev(clk, "apb_pclk", NULL); 23 clk_register_clkdev(clk, "apb_pclk", NULL);
18 clk_register_clkdev(clk, NULL, "gpio.0");
19 clk_register_clkdev(clk, NULL, "gpio.1");
20 clk_register_clkdev(clk, NULL, "gpio.2");
21 clk_register_clkdev(clk, NULL, "gpio.3");
22 clk_register_clkdev(clk, NULL, "rng");
23 clk_register_clkdev(clk, NULL, "fsmc-nand");
24 24
25 /* 25 /*
26 * The 2.4 MHz TIMCLK reference clock is active at boot time, this is 26 * The 2.4 MHz TIMCLK reference clock is active at boot time, this is
@@ -32,17 +32,5 @@ void __init nomadik_clk_init(void)
32 clk_register_clkdev(clk, NULL, "mtu0"); 32 clk_register_clkdev(clk, NULL, "mtu0");
33 clk_register_clkdev(clk, NULL, "mtu1"); 33 clk_register_clkdev(clk, NULL, "mtu1");
34 34
35 /* 35 of_clk_init(cpu8815_clk_match);
36 * At boot time, PLL2 is set to generate a set of fixed clocks,
37 * one of them is CLK48, the 48 MHz clock, routed to the UART, MMC/SD
38 * I2C, IrDA, USB and SSP blocks.
39 */
40 clk = clk_register_fixed_rate(NULL, "CLK48", NULL, CLK_IS_ROOT,
41 48000000);
42 clk_register_clkdev(clk, NULL, "uart0");
43 clk_register_clkdev(clk, NULL, "uart1");
44 clk_register_clkdev(clk, NULL, "mmci");
45 clk_register_clkdev(clk, NULL, "ssp");
46 clk_register_clkdev(clk, NULL, "nmk-i2c.0");
47 clk_register_clkdev(clk, NULL, "nmk-i2c.1");
48} 36}