]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: sifive: dts: fu540: add U-Boot dmc node
authorPragnesh Patel <pragnesh.patel@sifive.com>
Fri, 29 May 2020 06:03:28 +0000 (11:33 +0530)
committerAndes <uboot@andestech.com>
Thu, 4 Jun 2020 01:44:08 +0000 (09:44 +0800)
Add dmc node to enable ddr driver. dmc is used to
initialize the memory controller.

Signed-off-by: Pragnesh Patel <pragnesh.patel@sifive.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com>
arch/riscv/dts/fu540-c000-u-boot.dtsi

index fbfe296a03287febf0d65285f4ca29d317d552e2..fc91a7c987fd4eb296f6968c4c413b4a34916d46 100644 (file)
                        reg = <0x0 0x2000000 0x0 0xc0000>;
                        u-boot,dm-spl;
                };
+               dmc: dmc@100b0000 {
+                       compatible = "sifive,fu540-c000-ddr";
+                       reg = <0x0 0x100b0000 0x0 0x0800
+                              0x0 0x100b2000 0x0 0x2000
+                              0x0 0x100b8000 0x0 0x0fff>;
+                       clocks = <&prci PRCI_CLK_DDRPLL>;
+                       clock-frequency = <933333324>;
+                       u-boot,dm-spl;
+               };
        };
 };