]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
clk: pxa: keep clocks initialization separated per variant
authorRobert Jarzmik <robert.jarzmik@free.fr>
Mon, 6 Oct 2014 23:07:59 +0000 (01:07 +0200)
committerMichael Turquette <mturquette@linaro.org>
Mon, 17 Nov 2014 19:27:45 +0000 (11:27 -0800)
Have each pxa variant (pxa25x, pxa27x, pxa3xx) have its own device-tree
clock initializing function, to be able to register its own specific
core clocks.

Apply that change specifically to pxa27x.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/pxa/clk-pxa.c
drivers/clk/pxa/clk-pxa.h
drivers/clk/pxa/clk-pxa27x.c

index 994fd6fc266f0f2f4847617a8a3823bbad0ca7cc..4e834753ab094500677811702c37ad005503929b 100644 (file)
@@ -102,8 +102,7 @@ int __init clk_pxa_cken_init(const struct desc_clk_cken *clks, int nb_clks)
        return 0;
 }
 
-static void __init pxa_dt_clocks_init(struct device_node *np)
+void __init clk_pxa_dt_common_init(struct device_node *np)
 {
        of_clk_add_provider(np, of_clk_src_onecell_get, &onecell_data);
 }
-CLK_OF_DECLARE(pxa_clks, "marvell,pxa-clocks", pxa_dt_clocks_init);
index 7b8d48e8e17e86fce9a3311c78ad8044213c9adf..323965430111943b33dad32b3e8d5a889c7dead2 100644 (file)
@@ -103,5 +103,6 @@ static int dummy_clk_set_parent(struct clk_hw *hw, u8 index)
 extern void clkdev_pxa_register(int ckid, const char *con_id,
                                const char *dev_id, struct clk *clk);
 extern int clk_pxa_cken_init(const struct desc_clk_cken *clks, int nb_clks);
+void clk_pxa_dt_common_init(struct device_node *np);
 
 #endif
index 24c1d2454c75143666bc9ac50476d15ea20042e8..bb8dfbc747bae16a1dee294edc7419ef4ad0c307 100644 (file)
@@ -368,3 +368,10 @@ static int __init pxa27x_clocks_init(void)
        return clk_pxa_cken_init(pxa27x_clocks, ARRAY_SIZE(pxa27x_clocks));
 }
 postcore_initcall(pxa27x_clocks_init);
+
+static void __init pxa27x_dt_clocks_init(struct device_node *np)
+{
+       pxa27x_clocks_init();
+       clk_pxa_dt_common_init(np);
+}
+CLK_OF_DECLARE(pxa_clks, "marvell,pxa270-clocks", pxa27x_dt_clocks_init);