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 | 7ccebf5ece41c14fecc6be66dabc8e248d49112f (patch) | |
tree | 5edc483b9b59a6a7735dfe09fd2083aa22d9e0cf | |
parent | 3cfad2c8a054ba41291b3a0abe66b1e9e85229f4 (diff) | |
download | master-187ad058-7ccebf5ece41c14fecc6be66dabc8e248d49112f.tar.gz master-187ad058-7ccebf5ece41c14fecc6be66dabc8e248d49112f.tar.bz2 master-187ad058-7ccebf5ece41c14fecc6be66dabc8e248d49112f.zip |
[ar71xx] mzk-w04nu: fetch MAC address from the flash
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14383 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 37019ae4c2..99ec6693ec 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; |