]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: stih407-clocks: Identify critical clocks
authorPeter Griffin <peter.griffin@linaro.org>
Fri, 21 Oct 2016 09:08:00 +0000 (11:08 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Thu, 10 Nov 2016 08:52:36 +0000 (09:52 +0100)
Lots of platforms contain clocks which if turned off would prove fatal.
The only way to recover is to restart the board(s).  This driver takes
references to clocks which are required to be always-on.  The Common
Clk Framework will then take references to them.  This way they will
not be turned off during the clk_disabled_unused() procedure.

In this patch we are identifying clocks, which if gated would render
the STiH407 development board unserviceable.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
arch/arm/boot/dts/stih407-clock.dtsi

index 13029c03d7c6c7903811f11da4470cb83985a369..34c119a66f14b44a2878bbbb9eb21fba7ea87fb6 100644 (file)
                                clocks = <&clk_sysin>;
 
                                clock-output-names = "clk-s-a0-pll-ofd-0";
+                               clock-critical = <0>; /* clk-s-a0-pll-ofd-0 */
                        };
 
                        clk_s_a0_flexgen: clk-s-a0-flexgen {
                                         <&clk_sysin>;
 
                                clock-output-names = "clk-ic-lmi0";
+                               clock-critical = <CLK_IC_LMI0>;
                        };
                };
 
                                             "clk-s-c0-fs0-ch1",
                                             "clk-s-c0-fs0-ch2",
                                             "clk-s-c0-fs0-ch3";
+                       clock-critical = <0>; /* clk-s-c0-fs0-ch0 */
                };
 
                clk_s_c0: clockgen-c@09103000 {
                                clocks = <&clk_sysin>;
 
                                clock-output-names = "clk-s-c0-pll0-odf-0";
+                               clock-critical = <0>; /* clk-s-c0-pll0-odf-0 */
                        };
 
                        clk_s_c0_pll1: clk-s-c0-pll1 {
                                                     "clk-main-disp",
                                                     "clk-aux-disp",
                                                     "clk-compo-dvp";
+                               clock-critical = <CLK_PROC_STFE>,
+                                                <CLK_ICN_CPU>,
+                                                <CLK_TX_ICN_DMU>,
+                                                <CLK_EXT2F_A9>,
+                                                <CLK_ICN_LMI>,
+                                                <CLK_ICN_SBC>;
                        };
                };