drivers: net: cpsw: add support for reading mac address from efuse
authorMugunthan V N <mugunthanvnm@ti.com>
Thu, 28 Apr 2016 10:06:07 +0000 (15:36 +0530)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 24 May 2016 16:42:03 +0000 (11:42 -0500)
commite4310566deb7533301eb0de78d3640f4f307d267
treea1a1f976cf83649427d7702060a4f69ca9dd7c3e
parent66e740cbbdc54b5785046fffa52ed197602d74b1
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>
drivers/net/Makefile
drivers/net/cpsw-common.c [new file with mode: 0644]
drivers/net/cpsw.c
include/cpsw.h