diff options
author | Manuel Lauss <manuel.lauss@googlemail.com> | 2010-07-21 08:30:50 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-08-05 08:26:09 -0400 |
commit | f66736532a6bc593a2d7cda68835a79c23836f1b (patch) | |
tree | fb015e299f7355bce687baa157837608dffe762a /arch/mips/include | |
parent | 12bf3f24e07d18ab6c42619be604e269f6738614 (diff) |
MIPS: au1000_eth: Get ethernet address from platform_data
au1000_eth uses firmware calls to get a valid MAC address, and changes
it depending on platform device id. This patch moves this logic out of
the driver into the platform device registration part, where boards with
supported chips can use whatever firmware interface they need; the default
implementation maintains compatibility with existing, YAMON-based firmware.
Tested-by: Wolfgang Grandegger <wg@denx.de>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
To: Linux-MIPS <linux-mips@linux-mips.org>
Cc: netdev@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1481/
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/mach-au1x00/au1xxx_eth.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-au1x00/au1xxx_eth.h b/arch/mips/include/asm/mach-au1x00/au1xxx_eth.h index bae9b758fcde..49dc8d9db186 100644 --- a/arch/mips/include/asm/mach-au1x00/au1xxx_eth.h +++ b/arch/mips/include/asm/mach-au1x00/au1xxx_eth.h | |||
@@ -9,6 +9,7 @@ struct au1000_eth_platform_data { | |||
9 | int phy_addr; | 9 | int phy_addr; |
10 | int phy_busid; | 10 | int phy_busid; |
11 | int phy_irq; | 11 | int phy_irq; |
12 | char mac[6]; | ||
12 | }; | 13 | }; |
13 | 14 | ||
14 | void __init au1xxx_override_eth_cfg(unsigned port, | 15 | void __init au1xxx_override_eth_cfg(unsigned port, |