netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] stmmac: platform: add "snps,dwmac-5.10a" IP compatible string
@ 2020-05-25  8:22 Fugang Duan
  2020-05-25 14:10 ` Andrew Lunn
  0 siblings, 1 reply; 5+ messages in thread
From: Fugang Duan @ 2020-05-25  8:22 UTC (permalink / raw)
  To: peppe.cavallaro, alexandre.torgue, joabreu, kuba, davem
  Cc: netdev, mcoquelin.stm32, p.zabel, linux-stm32, linux-arm-kernel,
	fugang.duan

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>

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
index bcda49d..f32317f 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
@@ -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;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-25 16:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-25  8:22 [PATCH] stmmac: platform: add "snps,dwmac-5.10a" IP compatible string Fugang Duan
2020-05-25 14:10 ` Andrew Lunn
2020-05-25 16:00   ` [EXT] " Andy Duan
2020-05-25 16:05     ` Andrew Lunn
2020-05-25 16:13       ` Andy Duan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).