]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM64: dts: vexpress: Use assigned-clock-parents for sp810
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 12 Aug 2015 01:36:51 +0000 (18:36 -0700)
committerOlof Johansson <olof@lixom.net>
Tue, 18 Aug 2015 20:17:48 +0000 (13:17 -0700)
The sp810 clk driver is calling the clk consumer APIs from
clk_prepare ops to change the parent to a 1 MHz fixed rate clock
for each of the clocks that the driver provides. Use
assigned-clock-parents for this instead of doing it in the driver
to avoid using the consumer API in provider code. This also
allows us to remove the usage of clk provider APIs that take a
struct clk as an argument from the sp810 driver.

Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm64/boot/dts/arm/juno-motherboard.dtsi
arch/arm64/boot/dts/arm/rtsm_ve-motherboard.dtsi

index 021e0f40f4195d3f6283dab77a516a1bd663be47..637e046f0e367dd23fbe391dc1542dd97a315504 100644 (file)
                                        clock-names = "refclk", "timclk", "apb_pclk";
                                        #clock-cells = <1>;
                                        clock-output-names = "timerclken0", "timerclken1", "timerclken2", "timerclken3";
+                                       assigned-clocks = <&v2m_sysctl 0>, <&v2m_sysctl 1>, <&v2m_sysctl 3>, <&v2m_sysctl 3>;
+                                       assigned-clock-parents = <&v2m_refclk1mhz>, <&v2m_refclk1mhz>, <&v2m_refclk1mhz>, <&v2m_refclk1mhz>;
                                };
 
                                apbregs@010000 {
index c46cbb29f3c6b107cadba495bc590ad8ae820cb2..88a7583ed7a72c3c8536b3c54ad356462cea0feb 100644 (file)
@@ -74,6 +74,8 @@
                                clock-names = "refclk", "timclk", "apb_pclk";
                                #clock-cells = <1>;
                                clock-output-names = "timerclken0", "timerclken1", "timerclken2", "timerclken3";
+                               assigned-clocks = <&v2m_sysctl 0>, <&v2m_sysctl 1>, <&v2m_sysctl 3>, <&v2m_sysctl 3>;
+                               assigned-clock-parents = <&v2m_refclk1mhz>, <&v2m_refclk1mhz>, <&v2m_refclk1mhz>, <&v2m_refclk1mhz>;
                        };
 
                        aaci@040000 {