Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

stmmac: platform: add "snps, dwmac-5.10a" IP compatible string

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>

authored by

Fugang Duan and committed by
David S. Miller
139df98b 8298a419

+2 -1
+2 -1
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
··· 507 507 508 508 if (of_device_is_compatible(np, "snps,dwmac-4.00") || 509 509 of_device_is_compatible(np, "snps,dwmac-4.10a") || 510 - of_device_is_compatible(np, "snps,dwmac-4.20a")) { 510 + of_device_is_compatible(np, "snps,dwmac-4.20a") || 511 + of_device_is_compatible(np, "snps,dwmac-5.10a")) { 511 512 plat->has_gmac4 = 1; 512 513 plat->has_gmac = 0; 513 514 plat->pmt = 1;