]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: socfpga: Flag timer clock as pre-reloc
authorMarek Vasut <marex@denx.de>
Sat, 18 Aug 2018 17:13:28 +0000 (19:13 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 24 Aug 2018 10:05:20 +0000 (12:05 +0200)
Flag timer clock as DM pre-reloc, so that a timer driver can be used and
it can extract information about it's clock rate using the clock framework.
This patch also moves some of the pre-reloc flags into the core dtsi file,
this is because the timer is not board specific, but rather is used on all
boards.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <chin.liang.see@intel.com>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Cc: Ley Foon Tan <ley.foon.tan@intel.com>
arch/arm/dts/socfpga_arria10.dtsi
arch/arm/dts/socfpga_arria10_socdk.dtsi

index ce000512efbedcc36925109c56d92c22f7992c2a..573974be040b3630e2f2efcf3d4e38703eb8cf00 100644 (file)
        #address-cells = <1>;
        #size-cells = <1>;
 
+       chosen {
+               tick-timer = &timer2;
+               u-boot,dm-pre-reloc;
+       };
+
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
                                                        compatible = "altr,socfpga-a10-perip-clk";
                                                        clocks = <&main_pll>;
                                                        div-reg = <0x144 0 11>;
+                                                       u-boot,dm-pre-reloc;
                                                };
 
                                                main_emaca_clk: main_emaca_clk@68 {
                                                        compatible = "altr,socfpga-a10-perip-clk";
                                                        clocks = <&periph_pll>;
                                                        div-reg = <0x144 16 11>;
+                                                       u-boot,dm-pre-reloc;
                                                };
 
                                                peri_emaca_clk: peri_emaca_clk@e8 {
                                                         <&osc1>, <&cb_intosc_hs_div2_clk>,
                                                         <&f2s_free_clk>;
                                                reg = <0x64>;
+                                               u-boot,dm-pre-reloc;
                                        };
 
                                        s2f_user1_free_clk: s2f_user1_free_clk@104 {
                                                compatible = "altr,socfpga-a10-perip-clk";
                                                clocks = <&noc_free_clk>;
                                                fixed-divider = <4>;
+                                               u-boot,dm-pre-reloc;
                                        };
 
                                        l4_main_clk: l4_main_clk {
                        reg = <0xffd00000 0x100>;
                        clocks = <&l4_sys_free_clk>;
                        clock-names = "timer";
+                       u-boot,dm-pre-reloc;
                };
 
                timer3: timer3@ffd00100 {
index 9160c20bd0b61f5b0754fd54ce734f1ace4a4b32..17e0b75a8f43c12753bf0524eecb1107a6ad5e7a 100644 (file)
 };
 
 /* Clock available early */
-&main_noc_base_clk {
-       u-boot,dm-pre-reloc;
-};
-
 &main_periph_ref_clk {
        u-boot,dm-pre-reloc;
 };
 
-&peri_noc_base_clk {
-       u-boot,dm-pre-reloc;
-};
-
-&noc_free_clk {
-       u-boot,dm-pre-reloc;
-};
-
 &l4_mp_clk {
        u-boot,dm-pre-reloc;
 };