aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr2543n.c16
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g300nh2.c6
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g450h.c6
3 files changed, 15 insertions, 13 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr2543n.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr2543n.c
index 8f6db5eda1..141914aa29 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr2543n.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr2543n.c
@@ -60,6 +60,11 @@ static struct gpio_led tl_wr2543n_leds_gpio[] __initdata = {
static struct gpio_led tl_wr2543n_wmac_leds_gpio[] = {
{
+ .name = "tp-link:green:wlan2g",
+ .gpio = TL_WR2543N_GPIO_WMAC_LED_WLAN2G,
+ .active_low = 1,
+ },
+ {
.name = "tp-link:green:wlan5g",
.gpio = TL_WR2543N_GPIO_WMAC_LED_WLAN5G,
.active_low = 1,
@@ -125,17 +130,6 @@ static void __init tl_wr2543n_setup(void)
tl_wr2543n_gpio_keys);
ath79_register_usb();
- /*
- * The ath9k driver uses this pin for its default led device, which is
- * named ath9k-phy0, and reflects activity on either the 2 GHz or 5 GHz
- * bands. This pin is connected to the WR2543's 2GHz WLAN LED.
- */
- ap9x_pci_setup_wmac_led_pin(0, TL_WR2543N_GPIO_WMAC_LED_WLAN2G);
-
- /*
- * We also have the driver set up an led device for the WR2543's
- * separate 5 GHz WLAN LED in case the user wants it.
- */
ap9x_pci_setup_wmac_leds(0, tl_wr2543n_wmac_leds_gpio,
ARRAY_SIZE(tl_wr2543n_wmac_leds_gpio));
ap91_pci_init(eeprom, mac);
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g300nh2.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g300nh2.c
index 296551348f..c44a9cf770 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g300nh2.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g300nh2.c
@@ -75,6 +75,11 @@ static struct gpio_led wzrhpg300nh2_wmac_leds_gpio[] = {
.active_low = 1,
},
{
+ .name = "buffalo:green:wireless",
+ .gpio = 5,
+ .active_low = 1,
+ },
+ {
.name = "buffalo:orange:security",
.gpio = 6,
.active_low = 1,
@@ -159,7 +164,6 @@ static void __init wzrhpg300nh2_setup(void)
ath79_register_gpio_keys_polled(-1, WZRHPG300NH2_KEYS_POLL_INTERVAL,
ARRAY_SIZE(wzrhpg300nh2_gpio_keys),
wzrhpg300nh2_gpio_keys);
- ap9x_pci_setup_wmac_led_pin(0, 5);
ap9x_pci_setup_wmac_leds(0, wzrhpg300nh2_wmac_leds_gpio,
ARRAY_SIZE(wzrhpg300nh2_wmac_leds_gpio));
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g450h.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g450h.c
index 53f37b0981..5d235c49f4 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g450h.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g450h.c
@@ -84,6 +84,11 @@ static struct gpio_led wzrhpg450h_wmac_leds_gpio[] = {
.gpio = 14,
.active_low = 1,
},
+ {
+ .name = "buffalo:green:wireless",
+ .gpio = 15,
+ .active_low = 1,
+ },
};
static struct gpio_keys_button wzrhpg450h_gpio_keys[] __initdata = {
@@ -156,7 +161,6 @@ static void __init wzrhpg450h_init(void)
ap91_pci_init(ee, NULL);
ap9x_pci_get_wmac_data(0)->tx_gain_buffalo = true;
ap9x_pci_get_wmac_data(1)->tx_gain_buffalo = true;
- ap9x_pci_setup_wmac_led_pin(0, 15);
ap9x_pci_setup_wmac_leds(0, wzrhpg450h_wmac_leds_gpio,
ARRAY_SIZE(wzrhpg450h_wmac_leds_gpio));
}