summaryrefslogtreecommitdiff
path: root/include/cpsw.h
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2016-04-28 10:06:07 (GMT)
committerJoe Hershberger <joe.hershberger@ni.com>2016-05-24 16:42:03 (GMT)
commite4310566deb7533301eb0de78d3640f4f307d267 (patch)
treea1a1f976cf83649427d7702060a4f69ca9dd7c3e /include/cpsw.h
parent66e740cbbdc54b5785046fffa52ed197602d74b1 (diff)
downloadu-boot-e4310566deb7533301eb0de78d3640f4f307d267.tar.xz
drivers: net: cpsw: add support for reading mac address from efuse
Different TI platforms has to read with different combination to get the mac address from efuse. So add support to read mac address based on machine/device compatibles. The code is taken from Linux drivers/net/ethernet/ti/cpsw-common.c done by Tony Lindgren. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/cpsw.h')
-rw-r--r--include/cpsw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cpsw.h b/include/cpsw.h
index cf1d30b..6255cd8 100644
--- a/include/cpsw.h
+++ b/include/cpsw.h
@@ -51,5 +51,6 @@ struct cpsw_platform_data {
};
int cpsw_register(struct cpsw_platform_data *data);
+int ti_cm_get_macid(struct udevice *dev, int slave, u8 *mac_addr);
#endif /* _CPSW_H_ */