ar71xx: TL-MR3020: fix board detection, fix missing mandatory package and modify LED behaviour
This patch fixes the board detection of the TL-MR3020. The LED behaviour has also been modified: * The WPS LED is the diag LED now. * A netdev trigger for the LAN LED has been added. The profile of the TL-MR3020 has been updated because the needed package "kmod-ledtrig-usbdev" was missing which resulted in a non-working usbdev trigger for the 3G/USB LED. [juhosg: the board name changes has been removed, and the kernel files has been changed instead.] Signed-off-by: Christian Cier-Zniewski <c.cier@gmx.de> SVN-Revision: 29905
This commit is contained in:
parent
c11ac55b29
commit
038d4e0d77
5 changed files with 7 additions and 4 deletions
|
@ -97,7 +97,9 @@ get_status_led() {
|
||||||
tew-632brp)
|
tew-632brp)
|
||||||
status_led="tew-632brp:green:status"
|
status_led="tew-632brp:green:status"
|
||||||
;;
|
;;
|
||||||
tl-mr3020 | \
|
tl-mr3020)
|
||||||
|
status_led="tp-link:green:wps"
|
||||||
|
;;
|
||||||
tl-mr3220 | \
|
tl-mr3220 | \
|
||||||
tl-mr3420 | \
|
tl-mr3420 | \
|
||||||
tl-wa901nd | \
|
tl-wa901nd | \
|
||||||
|
|
|
@ -146,6 +146,7 @@ om2p)
|
||||||
tl-mr3020)
|
tl-mr3020)
|
||||||
set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
|
set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1"
|
||||||
set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
|
set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
|
||||||
|
set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
tl-mr3220 | \
|
tl-mr3220 | \
|
||||||
|
|
|
@ -118,5 +118,5 @@ static void __init tl_mr3020_setup(void)
|
||||||
ar9xxx_add_device_wmac(ee, mac);
|
ar9xxx_add_device_wmac(ee, mac);
|
||||||
}
|
}
|
||||||
|
|
||||||
MIPS_MACHINE(AR71XX_MACH_TL_MR3020, "TL-MR3020", "TP-LINK TL-MR3020 v1",
|
MIPS_MACHINE(AR71XX_MACH_TL_MR3020, "TL-MR3020", "TP-LINK TL-MR3020",
|
||||||
tl_mr3020_setup);
|
tl_mr3020_setup);
|
||||||
|
|
|
@ -117,5 +117,5 @@ static void __init tl_mr3020_setup(void)
|
||||||
ath79_register_wmac(ee, mac);
|
ath79_register_wmac(ee, mac);
|
||||||
}
|
}
|
||||||
|
|
||||||
MIPS_MACHINE(ATH79_MACH_TL_MR3020, "TL-MR3020", "TP-LINK TL-MR3020 v1",
|
MIPS_MACHINE(ATH79_MACH_TL_MR3020, "TL-MR3020", "TP-LINK TL-MR3020",
|
||||||
tl_mr3020_setup);
|
tl_mr3020_setup);
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
define Profile/TLMR3020
|
define Profile/TLMR3020
|
||||||
NAME:=TP-LINK TL-MR3020
|
NAME:=TP-LINK TL-MR3020
|
||||||
PACKAGES:=kmod-usb-core kmod-usb2
|
PACKAGES:=kmod-usb-core kmod-usb2 kmod-ledtrig-usbdev
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Profile/TLMR3020/Description
|
define Profile/TLMR3020/Description
|
||||||
|
|
Loading…
Reference in a new issue