]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
NET: DW: fix regression for ARC boards
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Mon, 7 Oct 2019 16:10:50 +0000 (19:10 +0300)
committerTom Rini <trini@konsulko.com>
Mon, 7 Oct 2019 17:23:49 +0000 (13:23 -0400)
The commit
642b80d256e ("net: designware: drop compatible altr, socfpga-stmmac")
breaks designware ethernet for all ARC boards. It removes
"altr, socfpga-stmmac" compatible from "drivers/net/designware.c"
without changing compatible in the boards which use it.

Fix that by adding "snps,arc-dwmac-3.70a" compatible string to
"drivers/net/designware.c" and using it in ARC boards device tree.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
arch/arc/dts/axs10x_mb.dtsi
arch/arc/dts/hsdk.dts
drivers/net/designware.c

index 6d97de9fd8c91db1c55f6e642afd7dade9b20ecf..5b77642b8d77ca04989fe4d9d258296b6ccc3585 100644 (file)
@@ -53,7 +53,7 @@
                };
 
                ethernet@18000 {
-                       compatible = "altr,socfpga-stmmac";
+                       compatible = "snps,arc-dwmac-3.70a";
                        reg = < 0x18000 0x2000 >;
                        phy-mode = "gmii";
                        snps,pbl = < 32 >;
index 7028050447ba3337e53e6ac2fbd3ce7c9f7de267..34ef3a620a38a9db8a44e8f88358dc8f19c7a121 100644 (file)
@@ -71,7 +71,7 @@
 
        ethernet@f0008000 {
                #interrupt-cells = <1>;
-               compatible = "altr,socfpga-stmmac";
+               compatible = "snps,arc-dwmac-3.70a";
                reg = <0xf0008000 0x2000>;
                phy-mode = "gmii";
        };
index 145eeac45fd44fc4c84ef787cacddb44734c06ea..0031370085868f3b8f81db2fa8c596fbfb3b703c 100644 (file)
@@ -852,6 +852,7 @@ static const struct udevice_id designware_eth_ids[] = {
        { .compatible = "amlogic,meson-gxbb-dwmac" },
        { .compatible = "amlogic,meson-axg-dwmac" },
        { .compatible = "st,stm32-dwmac" },
+       { .compatible = "snps,arc-dwmac-3.70a" },
        { }
 };