ARM: dts: vexpress: Use assigned-clock-parents for sp810
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 12 Aug 2015 01:36:50 +0000 (18:36 -0700)
committerOlof Johansson <olof@lixom.net>
Tue, 18 Aug 2015 20:17:27 +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/arm/boot/dts/vexpress-v2m-rs1.dtsi
arch/arm/boot/dts/vexpress-v2m.dtsi

index 2efb2058ba498a0f8e759f50746e8c06b4f66b83..21b02874bea3c89fb873a5be56dc5ead6d65d5db 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>;
                        };
 
                        /* PCI-E I2C bus */
index cb3090f919a70c4d2ef35ed8c264adc9992ca1a4..e712c0af149b9b8ddf1ed2323b89b3752bc89f63 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>;
                        };
 
                        /* PCI-E I2C bus */
This page took 0.040848 seconds and 5 git commands to generate.