stmmac: platform: add "snps, dwmac-5.10a" IP compatible string
authorFugang Duan <fugang.duan@nxp.com>
Thu, 28 May 2020 08:26:23 +0000 (16:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 May 2020 00:01:26 +0000 (17:01 -0700)
Add "snps,dwmac-5.10a" compatible string for 5.10a version that can
avoid to define some plat data in glue layer.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c

index bcda49dcf6194c4a59dedda85c3ea8999e5624d8..f32317fa75c87f94f9fb0314b08198647edb404d 100644 (file)
@@ -507,7 +507,8 @@ stmmac_probe_config_dt(struct platform_device *pdev, const char **mac)
 
        if (of_device_is_compatible(np, "snps,dwmac-4.00") ||
            of_device_is_compatible(np, "snps,dwmac-4.10a") ||
-           of_device_is_compatible(np, "snps,dwmac-4.20a")) {
+           of_device_is_compatible(np, "snps,dwmac-4.20a") ||
+           of_device_is_compatible(np, "snps,dwmac-5.10a")) {
                plat->has_gmac4 = 1;
                plat->has_gmac = 0;
                plat->pmt = 1;