drivers: net: cpsw: Fix reading of mac address for am43 SoCs
PATCH 1/1 drivers: net: cpsw: Fix reading of mac address for am43 SoCs
cpsw driver tries to get macid for am43xx SoCs using the compatible ti,am4372. But not all variants of am43x uses this complatible like epos evm uses ti,am438x. So use a generic compatible ti,am43 to get macid for all am43 based platforms.
--- drivers/net/cpsw-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/cpsw-common.c +1 -1
@@ -110,7 +110,7 @@ int ti_cm_get_macid(struct udevice *dev, int slave, u8 *mac_addr)if (of_device_is_compatible (dev,"ti,dm816-emac" ))return cpsw_am33xx_cm_get_macid (dev,0x30 , slave, mac_addr); -if (of_machine_is_compatible ("ti,am4372" )) +if (of_machine_is_compatible ("ti,am43" ))return cpsw_am33xx_cm_get_macid (dev,0x630 , slave, mac_addr);if (of_machine_is_compatible ("ti,dra7" ))
Signature · 1 line
2.11.0
PATCH 1/1 drivers: net: cpsw: Fix reading of mac address for am43 SoCs
+ Joe
Quoted 25 lines · Lokesh Vutla
cpsw driver tries to get macid for am43xx SoCs using the compatible ti,am4372. But not all variants of am43x uses this complatible like epos evm uses ti,am438x. So use a generic compatible ti,am43 to get macid for all am43 based platforms.
Signed-off-by Lokesh Vutla <[email protected]>--- drivers/net/cpsw-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/cpsw-common.c +1
-1@@ -110,7 +110,7 @@ int ti_cm_get_macid(struct udevice *dev, int slave, u8 *mac_addr)if (of_device_is_compatible (dev,"ti,dm816-emac" ))return cpsw_am33xx_cm_get_macid (dev,0x30 , slave, mac_addr); -if (of_machine_is_compatible ("ti,am4372" )) +if (of_machine_is_compatible ("ti,am43" ))return cpsw_am33xx_cm_get_macid (dev,0x630 , slave, mac_addr);if (of_machine_is_compatible ("ti,dra7" ))
PATCH 1/1 drivers: net: cpsw: Fix reading of mac address for am43 SoCs
In reply to Lokesh VutlaQuoted 7 lines · Lokesh Vutla
cpsw driver tries to get macid for am43xx SoCs using the compatible ti,am4372. But not all variants of am43x uses this complatible like epos evm uses ti,am438x. So use a generic compatible ti,am43 to get macid for all am43 based platforms.
Signed-off-by Lokesh Vutla <[email protected]>
PATCH 1/1 drivers: net: cpsw: Fix reading of mac address for am43 SoCs
In reply to Lokesh VutlaQuoted 7 lines · Lokesh Vutla
cpsw driver tries to get macid for am43xx SoCs using the compatible ti,am4372. But not all variants of am43x uses this complatible like epos evm uses ti,am438x. So use a generic compatible ti,am43 to get macid for all am43 based platforms.
Signed-off-by Lokesh Vutla <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170205/845fdbbf/attachment.sig>
Quoted 9 lines · Lokesh Vutla
cpsw driver tries to get macid for am43xx SoCs using the compatible ti,am4372. But not all variants of am43x uses this complatible like epos evm uses ti,am438x. So use a generic compatible ti,am43 to get macid for all am43 based platforms.
Signed-off-by Lokesh Vutla <[email protected]>Reviewed-by Joe Hershberger <[email protected]>Reviewed-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170208/93081c60/attachment.sig>