KSZ8851-SNL: Add support for EEPROM MAC address
authorBen Dooks <ben@simtec.co.uk>
Mon, 21 Nov 2011 08:57:58 +0000 (08:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Nov 2011 19:59:39 +0000 (14:59 -0500)
commita9a8de214c91eecf596b3e79c7986b74ef17f4ec
tree2f98e662775ec21c23563c098eedaba04d169a1b
parent072bc80156729f853e8bcafe1b17c48c74462887
KSZ8851-SNL: Add support for EEPROM MAC address

Add support for reading the MAC address from the system registers if there
is an EEPROM present. This involves caching the KS_CCR register for later
use (will also be useful for ETHTOOL support) and adding a print to say
that there is an EEPROM present.

Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ks8851.c