]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: Enable some devices pre-relocation
authorSean Anderson <seanga2@gmail.com>
Fri, 9 Apr 2021 02:13:09 +0000 (22:13 -0400)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Fri, 14 May 2021 08:20:48 +0000 (16:20 +0800)
These devices are necessary for the clock driver, which is required by the
sram driver, to run pre-relocation.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
arch/riscv/dts/k210.dtsi

index 0b79a2960087da05e0ec5fcb6854d1b2699841d6..a735bebf2c5be07d115a50af2d28dd8f2248cc43 100644 (file)
@@ -91,6 +91,7 @@
                         <&sysclk K210_CLK_SRAM1>,
                         <&sysclk K210_CLK_PLL1>;
                clock-names = "sram0", "sram1", "airam";
+               u-boot,dm-pre-reloc;
        };
 
        reserved-memory {
                        compatible = "fixed-clock";
                        #clock-cells = <0>;
                        clock-frequency = <26000000>;
+                       u-boot,dm-pre-reloc;
                };
        };
 
                                             "syscon", "simple-mfd";
                                reg = <0x50440000 0x100>;
                                reg-io-width = <4>;
+                               u-boot,dm-pre-reloc;
 
                                sysclk: clock-controller {
                                        #clock-cells = <1>;
                                        compatible = "kendryte,k210-clk";
                                        clocks = <&in0>;
+                                       u-boot,dm-pre-reloc;
                                };
 
                                sysrst: reset-controller {