diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-02-03 07:53:46 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-02-03 07:53:46 +0000 |
commit | 9e624a714468404a7f950594edae43e79efeee80 (patch) | |
tree | 5e9b8024f86cbf51139c892fb92c4f81dbc29bcd /target/linux/ar71xx/files | |
parent | 03de0031831d86df81e1d05cbe79fb3d9d003989 (diff) | |
download | mtk-20170518-9e624a714468404a7f950594edae43e79efeee80.zip mtk-20170518-9e624a714468404a7f950594edae43e79efeee80.tar.gz mtk-20170518-9e624a714468404a7f950594edae43e79efeee80.tar.bz2 |
mzk-w04nu: fetch MAC address from the flash
SVN-Revision: 14383
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w04nu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w04nu.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w04nu.c index 37019ae..99ec669 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w04nu.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w04nu.c @@ -137,6 +137,10 @@ static struct gpio_button mzk_w04nu_gpio_buttons[] __initdata = { static void __init mzk_w04nu_setup(void) { + u8 *mac = (u8 *) KSEG1ADDR(0x1fff1000); + + ar71xx_set_mac_base(mac); + ar71xx_add_device_mdio(0x0); ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; |