diff options
author | Steve Glendinning <steve.glendinning@smsc.com> | 2009-01-27 06:51:12 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-01 00:37:22 -0800 |
commit | 31f4574774e98aa275aeeee94f41ce042285ed8e (patch) | |
tree | b7e843691852eb3efd2b2409e791f7b77bf6ebb9 /include/linux/smsc911x.h | |
parent | d23f028a4ddce8b783c212bfe911d1d307ff3617 (diff) | |
download | blackbird-op-linux-31f4574774e98aa275aeeee94f41ce042285ed8e.tar.gz blackbird-op-linux-31f4574774e98aa275aeeee94f41ce042285ed8e.zip |
smsc911x: allow mac address to be saved before device reset
Some platforms (for example pcm037) do not have an EEPROM fitted,
instead storing their mac address somewhere else. The bootloader
fetches this and configures the ethernet adapter before the kernel is
started.
This patch allows a platform to indicate to the driver via the
SMSC911X_SAVE_MAC_ADDRESS flag that the mac address has already been
configured via such a mechanism, and should be saved before resetting
the chip.
Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/smsc911x.h')
-rw-r--r-- | include/linux/smsc911x.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/smsc911x.h b/include/linux/smsc911x.h index 170c76b8f7a6..b32725075d71 100644 --- a/include/linux/smsc911x.h +++ b/include/linux/smsc911x.h @@ -45,5 +45,6 @@ struct smsc911x_platform_config { #define SMSC911X_USE_32BIT (BIT(1)) #define SMSC911X_FORCE_INTERNAL_PHY (BIT(2)) #define SMSC911X_FORCE_EXTERNAL_PHY (BIT(3)) +#define SMSC911X_SAVE_MAC_ADDRESS (BIT(4)) #endif /* __LINUX_SMSC911X_H__ */ |