aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2015-03-19 13:19:05 -0400
committerMaxime Ripard <maxime.ripard@free-electrons.com>2015-03-21 06:49:57 -0400
commitb712a623bd5c3b04b005e757945d43441e0aa4a8 (patch)
treeebea11bbb1251ff2f6fd4f4dde26ddf948ad63f4
parent946fd40f2860bca61abb51676cf72b31ca79d3f8 (diff)
clk: sunxi: Register divs clocks before factor clocks
We want to reparent AHB clock to PLL6 on sun5i/sun7i using the assigned clocks properties. AHB is a factor clock, while PLL6 is a divs clock. Register divs clocks before factor clocks so reparenting works. This is only needed because we do the reparenting on the clock provider. The proper way to fix this is to split out all the old sunxi clocks into separate CLK_OF_DECLARE statements, like we are doing for sun9i. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r--drivers/clk/sunxi/clk-sunxi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c
index 7580a1bc88fd..d92e30371d8a 100644
--- a/drivers/clk/sunxi/clk-sunxi.c
+++ b/drivers/clk/sunxi/clk-sunxi.c
@@ -1312,15 +1312,15 @@ static void __init sunxi_init_clocks(const char *clocks[], int nclocks)
1312{ 1312{
1313 unsigned int i; 1313 unsigned int i;
1314 1314
1315 /* Register divided output clocks */
1316 of_sunxi_table_clock_setup(clk_divs_match, sunxi_divs_clk_setup);
1317
1315 /* Register factor clocks */ 1318 /* Register factor clocks */
1316 of_sunxi_table_clock_setup(clk_factors_match, sunxi_factors_clk_setup); 1319 of_sunxi_table_clock_setup(clk_factors_match, sunxi_factors_clk_setup);
1317 1320
1318 /* Register divider clocks */ 1321 /* Register divider clocks */
1319 of_sunxi_table_clock_setup(clk_div_match, sunxi_divider_clk_setup); 1322 of_sunxi_table_clock_setup(clk_div_match, sunxi_divider_clk_setup);
1320 1323
1321 /* Register divided output clocks */
1322 of_sunxi_table_clock_setup(clk_divs_match, sunxi_divs_clk_setup);
1323
1324 /* Register mux clocks */ 1324 /* Register mux clocks */
1325 of_sunxi_table_clock_setup(clk_mux_match, sunxi_mux_clk_setup); 1325 of_sunxi_table_clock_setup(clk_mux_match, sunxi_mux_clk_setup);
1326 1326