projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: add support for the TL-MR3420 v1 board
[openwrt/svn-archive/archive.git]
/
target
/
linux
/
ar71xx
/
files
/
arch
/
mips
/
ar71xx
/
mach-wrt160nl.c
diff --git
a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c
b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c
index 7fb97d979a52e6f5db03e25432dad623ae1ef2b7..acb7e0d1bb149d479c8ccd859a5805280a571451 100644
(file)
--- a/
target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c
+++ b/
target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c
@@
-100,14
+100,14
@@
static struct gpio_button wrt160nl_gpio_buttons[] __initdata = {
{
.desc = "reset",
.type = EV_KEY,
{
.desc = "reset",
.type = EV_KEY,
- .code =
BTN_0
,
+ .code =
KEY_RESTART
,
.threshold = 3,
.gpio = WRT160NL_GPIO_BTN_RESET,
.active_low = 1,
}, {
.desc = "wps",
.type = EV_KEY,
.threshold = 3,
.gpio = WRT160NL_GPIO_BTN_RESET,
.active_low = 1,
}, {
.desc = "wps",
.type = EV_KEY,
- .code =
BTN_1
,
+ .code =
KEY_WPS_BUTTON
,
.threshold = 3,
.gpio = WRT160NL_GPIO_BTN_WPS,
.active_low = 1,
.threshold = 3,
.gpio = WRT160NL_GPIO_BTN_WPS,
.active_low = 1,
@@
-121,8
+121,10
@@
static void __init wrt160nl_setup(void)
u8 mac[6];
if (nvram_parse_mac_addr(nvram, WRT160NL_NVRAM_SIZE,
u8 mac[6];
if (nvram_parse_mac_addr(nvram, WRT160NL_NVRAM_SIZE,
- "lan_hwaddr=", mac) == 0)
- ar71xx_set_mac_base(mac);
+ "lan_hwaddr=", mac) == 0) {
+ ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0);
+ ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, 1);
+ }
ar71xx_add_device_mdio(0x0);
ar71xx_add_device_mdio(0x0);