summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/sh_eth.h
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2009-10-09 00:17:14 +0000
committerDavid S. Miller <davem@davemloft.net>2009-10-13 03:44:05 -0700
commit748031f9fd2c06b28817d80761a5de97190cfd03 (patch)
tree06a66bfcf510cb22a961c1a617fdfa04562e9f1e /arch/sh/include/asm/sh_eth.h
parenta6e4bc5304033e434fabccabb230b8e9ff55d76f (diff)
downloadlinux-748031f9fd2c06b28817d80761a5de97190cfd03.tar.gz
linux-748031f9fd2c06b28817d80761a5de97190cfd03.tar.bz2
linux-748031f9fd2c06b28817d80761a5de97190cfd03.zip
net: allow sh_eth to get mac address through platform data
Extend the sh_eth driver to allow passing the mac address using the platform data structure. This to simplify board setup code. Signed-off-by: Magnus Damm <damm@opensource.se> Tested-by: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sh/include/asm/sh_eth.h')
-rw-r--r--arch/sh/include/asm/sh_eth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/include/asm/sh_eth.h b/arch/sh/include/asm/sh_eth.h
index acf99700deed..f739061e2ee4 100644
--- a/arch/sh/include/asm/sh_eth.h
+++ b/arch/sh/include/asm/sh_eth.h
@@ -7,6 +7,7 @@ struct sh_eth_plat_data {
int phy;
int edmac_endian;
+ unsigned char mac_addr[6];
unsigned no_ether_link:1;
unsigned ether_link_active_low:1;
};