diff options
| author | Lokesh Vutla <[email protected]> | 2017-02-01 09:20:49 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2017-02-08 16:24:25 -0500 |
| commit | e9ced147bced4fb6b9b2563bc177af7c7b680753 (patch) | |
| tree | 2370c5ba65695ed5ad2b435a41f2abae73a48780 /drivers | |
| parent | dbe7881de0c2bdab972b3cd35b503f69587edbfe (diff) | |
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.
Tested-by: Aparna Balasubramanian <[email protected]>
Signed-off-by: Lokesh Vutla <[email protected]>
Reviewed-by: Joe Hershberger <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/net/cpsw-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/cpsw-common.c b/drivers/net/cpsw-common.c index e828e85d8b3..607eb4563ce 100644 --- a/drivers/net/cpsw-common.c +++ b/drivers/net/cpsw-common.c @@ -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")) |
