]> git.baikalelectronics.ru Git - kernel.git/commit
clk: sunxi: Register divs clocks before factor clocks
authorChen-Yu Tsai <wens@csie.org>
Thu, 19 Mar 2015 17:19:05 +0000 (01:19 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sat, 21 Mar 2015 10:49:57 +0000 (11:49 +0100)
commit8cb18565874441ec031e81238e24b01058f57b6f
treeebea11bbb1251ff2f6fd4f4dde26ddf948ad63f4
parent01b7638db460ab99351699af77518d1f09902cdf
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>
drivers/clk/sunxi/clk-sunxi.c