net: stmmac: add dwmac-4.20a compatible
authorChristophe Roullier <christophe.roullier@st.com>
Fri, 25 May 2018 07:46:40 +0000 (09:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 03:08:29 +0000 (23:08 -0400)
Manage dwmac-4.20a version from synopsys

Signed-off-by: Christophe Roullier <christophe.roullier@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c

index ebd3e5ffa73cc54bb54a073b97961314550d30a0..6d141f3931eb650902469cebc18fa3613ad0dcb9 100644 (file)
@@ -472,7 +472,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.10a") ||
+           of_device_is_compatible(np, "snps,dwmac-4.20a")) {
                plat->has_gmac4 = 1;
                plat->has_gmac = 0;
                plat->pmt = 1;