diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2014-07-02 21:54:59 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2014-07-02 21:54:59 +0000 |
commit | ba1b49dbabbec9a440f14634075c5578489882fc (patch) | |
tree | f14b63cff92d9810515d6606b2ee1323cc67334e /target/linux/brcm47xx/patches-3.10/145-MIPS-BCM47XX-Fix-LEDs-on-WRT54GS-V1.0.patch | |
parent | 2dba3f8aca5f1cca27b06e97347cfa849458b472 (diff) | |
download | upstream-ba1b49dbabbec9a440f14634075c5578489882fc.tar.gz upstream-ba1b49dbabbec9a440f14634075c5578489882fc.tar.bz2 upstream-ba1b49dbabbec9a440f14634075c5578489882fc.zip |
brcm47xx: backport BCM47XX Linksys WRT54G series patches
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 41486
Diffstat (limited to 'target/linux/brcm47xx/patches-3.10/145-MIPS-BCM47XX-Fix-LEDs-on-WRT54GS-V1.0.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-3.10/145-MIPS-BCM47XX-Fix-LEDs-on-WRT54GS-V1.0.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/patches-3.10/145-MIPS-BCM47XX-Fix-LEDs-on-WRT54GS-V1.0.patch b/target/linux/brcm47xx/patches-3.10/145-MIPS-BCM47XX-Fix-LEDs-on-WRT54GS-V1.0.patch new file mode 100644 index 0000000000..23ba81f076 --- /dev/null +++ b/target/linux/brcm47xx/patches-3.10/145-MIPS-BCM47XX-Fix-LEDs-on-WRT54GS-V1.0.patch @@ -0,0 +1,40 @@ +From d12264ddf6c29ddab9889cd87a1e60d2209f9922 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com> +Date: Fri, 20 Jun 2014 07:53:14 +0200 +Subject: [3.17][PATCH 2/2] MIPS: BCM47XX: Fix LEDs on WRT54GS V1.0 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Reported-by: Catalin Patulea <cat@vv.carleton.ca> +Signed-off-by: Rafał Miłecki <zajec5@gmail.com> +--- + arch/mips/bcm47xx/leds.c | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +--- a/arch/mips/bcm47xx/leds.c ++++ b/arch/mips/bcm47xx/leds.c +@@ -306,6 +306,14 @@ bcm47xx_leds_linksys_wrt54g3gv2[] __init + BCM47XX_GPIO_LED(3, "blue", "3g", 0, LEDS_GPIO_DEFSTATE_OFF), + }; + ++/* Verified on: WRT54GS V1.0 */ ++static const struct gpio_led ++bcm47xx_leds_linksys_wrt54g_type_0101[] __initconst = { ++ BCM47XX_GPIO_LED(0, "green", "wlan", 0, LEDS_GPIO_DEFSTATE_OFF), ++ BCM47XX_GPIO_LED(1, "green", "power", 0, LEDS_GPIO_DEFSTATE_ON), ++ BCM47XX_GPIO_LED(7, "green", "dmz", 1, LEDS_GPIO_DEFSTATE_OFF), ++}; ++ + static const struct gpio_led + bcm47xx_leds_linksys_wrt610nv1[] __initconst = { + BCM47XX_GPIO_LED(0, "unk", "usb", 1, LEDS_GPIO_DEFSTATE_OFF), +@@ -542,6 +550,8 @@ void __init bcm47xx_leds_register(void) + bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt54g3gv2); + break; + case BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0101: ++ bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt54g_type_0101); ++ break; + case BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0467: + case BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0708: + bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt54g_generic); |