riscv: sifive: dts: fu540: set ethernet clock rate
authorPragnesh Patel <pragnesh.patel@sifive.com>
Fri, 29 May 2020 06:03:32 +0000 (11:33 +0530)
committerAndes <uboot@andestech.com>
Thu, 4 Jun 2020 01:44:09 +0000 (09:44 +0800)
Set ethernet clock rate to 125 Mhz so that it will work with 1000Mbps,
Earlier this is done by FSBL. With this change We can remove the
ethernet clock rate code from FSBL.

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

index fc91a7c..9bba554 100644 (file)
@@ -82,3 +82,8 @@
 &qspi2 {
        u-boot,dm-spl;
 };
+
+&eth0 {
+       assigned-clocks = <&prci PRCI_CLK_GEMGXLPLL>;
+       assigned-clock-rates = <125000000>;
+};