Changeset 41910


Ignore:
Timestamp:
2014-07-31T23:40:38+02:00 (4 years ago)
Author:
hauke
Message:

brcm47xx: 3.10: update MIPS patches with versions sent upstream

Signed-off-by: Rafał Miłecki <zajec5@…>

Location:
trunk/target/linux/brcm47xx/patches-3.10
Files:
2 deleted
7 moved

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm47xx/patches-3.10/144-make-reboot-more-reliable.patch

    r41908 r41910  
    11--- a/arch/mips/bcm47xx/setup.c 
    22+++ b/arch/mips/bcm47xx/setup.c 
    3 @@ -56,12 +56,12 @@ static void bcm47xx_machine_restart(char 
     3@@ -55,12 +55,12 @@ static void bcm47xx_machine_restart(char 
    44        switch (bcm47xx_bus_type) { 
    55 #ifdef CONFIG_BCM47XX_SSB 
  • trunk/target/linux/brcm47xx/patches-3.10/145-MIPS-BCM47XX-fixup-broken-MAC-addresses-in-nvram.patch

    r41908 r41910  
     1From 103c0bf3ff46486466bc9138d70c25133d516003 Mon Sep 17 00:00:00 2001 
     2From: Hauke Mehrtens <hauke@hauke-m.de> 
     3Date: Tue, 29 Jul 2014 00:08:01 +0200 
     4Subject: [PATCH] MIPS: BCM47XX: fixup broken MAC addresses in nvram 
     5 
     6The address prefix 00:90:4C is used by Broadcom in their initial 
     7configuration. When a mac address with the prefix 00:90:4C is used all 
     8devices from the same series are sharing the same mac address. To 
     9prevent mac address collisions we replace them with a mac address based 
     10on the base address. To generate such addresses we take the main mac 
     11address from et0macaddr and increase it by two for the first wifi 
     12device and by 3 for the second one. This matches the printed mac 
     13address on the device. The main mac address increased by one is used as 
     14wan address by the vendor code. 
     15 
     16Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> 
     17Cc: zajec5@gmail.com 
     18Cc: linux-mips@linux-mips.org 
     19Patchwork: https://patchwork.linux-mips.org/patch/7489/ 
     20Signed-off-by: Ralf Baechle <ralf@linux-mips.org> 
     21--- 
     22 arch/mips/bcm47xx/sprom.c | 48 +++++++++++++++++++++++++++++++++++++++++++++++ 
     23 1 file changed, 48 insertions(+) 
     24 
    125--- a/arch/mips/bcm47xx/sprom.c 
    226+++ b/arch/mips/bcm47xx/sprom.c 
    3 @@ -28,6 +28,7 @@ 
     27@@ -28,6 +28,8 @@ 
    428  
    529 #include <bcm47xx.h> 
    630 #include <bcm47xx_nvram.h> 
    731+#include <linux/if_ether.h> 
     32+#include <linux/etherdevice.h> 
    833  
    934 static void create_key(const char *prefix, const char *postfix, 
    1035                       const char *name, char *buf, int len) 
    11 @@ -631,6 +632,33 @@ static void bcm47xx_fill_sprom_path_r45( 
     36@@ -631,6 +633,33 @@ static void bcm47xx_fill_sprom_path_r45( 
    1237        } 
    1338 } 
     
    4368                                        const char *prefix, bool fallback) 
    4469 { 
    45 @@ -648,6 +676,23 @@ static void bcm47xx_fill_sprom_ethernet( 
     70@@ -648,6 +677,25 @@ static void bcm47xx_fill_sprom_ethernet( 
    4671  
    4772        nvram_read_macaddr(prefix, "macaddr", sprom->il0mac, fallback); 
     
    5580+       if (!bcm47xx_is_valid_mac(sprom->il0mac)) { 
    5681+               u8 mac[6]; 
     82+ 
    5783+               nvram_read_macaddr(NULL, "et0macaddr", mac, false); 
    5884+               if (bcm47xx_is_valid_mac(mac)) { 
    5985+                       int err = bcm47xx_increase_mac_addr(mac, mac_addr_used); 
     86+ 
    6087+                       if (!err) { 
    6188+                               memcpy(sprom->il0mac, mac, ETH_ALEN); 
  • trunk/target/linux/brcm47xx/patches-3.10/146-MIPS-BCM47XX-add-Microsoft-MN-700-and-Asus-WL500G.patch

    r41908 r41910  
    1 From 35661c37bde151764e8526e77d4e02ca77e19160 Mon Sep 17 00:00:00 2001 
     1From 250dc03727b9cce91bd86091f05bf2443e2be9ec Mon Sep 17 00:00:00 2001 
    22From: Hauke Mehrtens <hauke@hauke-m.de> 
    3 Date: Mon, 14 Jul 2014 23:32:10 +0200 
    4 Subject: [PATCH 5/5] MIPS: BCM47XX: add some more devices 
     3Date: Tue, 29 Jul 2014 00:12:09 +0200 
     4Subject: [PATCH] MIPS: BCM47XX: add Microsoft MN-700 and Asus WL500G 
    55 
    6 This adds Microsoft MN-700 and Asus WL500G. 
     6This patch adds detection for the Microsoft MN-700 and the Asus WL500G 
     7router. This is based on some old code from OpenWrt. 
    78 
    89Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> 
     10Cc: zajec5@gmail.com 
     11Cc: linux-mips@linux-mips.org 
     12Patchwork: https://patchwork.linux-mips.org/patch/7490/ 
     13Signed-off-by: Ralf Baechle <ralf@linux-mips.org> 
    914--- 
    1015 arch/mips/bcm47xx/board.c                          | 17 +++++++++++++++++ 
     
    1621--- a/arch/mips/bcm47xx/board.c 
    1722+++ b/arch/mips/bcm47xx/board.c 
    18 @@ -80,6 +80,14 @@ struct bcm47xx_board_type_list1 bcm47xx_ 
     23@@ -79,6 +79,14 @@ struct bcm47xx_board_type_list1 bcm47xx_ 
    1924        { {0}, NULL}, 
    2025 }; 
     
    3136 static const 
    3237 struct bcm47xx_board_type_list1 bcm47xx_board_list_productid[] __initconst = { 
    33 @@ -237,6 +245,15 @@ static __init const struct bcm47xx_board 
     38@@ -236,6 +244,15 @@ static __init const struct bcm47xx_board 
    3439                } 
    3540        } 
     
    5661+       BCM47XX_GPIO_KEY(6, KEY_RESTART), 
    5762+}; 
    58 +                        
     63+ 
    5964+static const struct gpio_keys_button 
    6065 bcm47xx_buttons_asus_wl500gd[] __initconst = { 
     
    7580  
    7681 static const struct gpio_keys_button 
    77 @@ -401,6 +413,9 @@ int __init bcm47xx_buttons_register(void 
     82@@ -395,6 +407,9 @@ int __init bcm47xx_buttons_register(void 
    7883        case BCM47XX_BOARD_ASUS_WL330GE: 
    7984                err = bcm47xx_copy_bdata(bcm47xx_buttons_asus_wl330ge); 
     
    8590                err = bcm47xx_copy_bdata(bcm47xx_buttons_asus_wl500gd); 
    8691                break; 
    87 @@ -525,6 +540,10 @@ int __init bcm47xx_buttons_register(void 
     92@@ -517,6 +532,10 @@ int __init bcm47xx_buttons_register(void 
    8893                err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrtsl54gs); 
    8994                break; 
     
    98103--- a/arch/mips/bcm47xx/leds.c 
    99104+++ b/arch/mips/bcm47xx/leds.c 
    100 @@ -73,6 +73,11 @@ bcm47xx_leds_asus_wl330ge[] __initconst 
     105@@ -64,6 +64,11 @@ bcm47xx_leds_asus_wl330ge[] __initconst 
    101106 }; 
    102107  
     
    110115        BCM47XX_GPIO_LED(0, "unk", "power", 1, LEDS_GPIO_DEFSTATE_ON), 
    111116 }; 
    112 @@ -358,6 +363,13 @@ bcm47xx_leds_linksys_wrtsl54gs[] __initc 
    113         BCM47XX_GPIO_LED(7, "orange", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 
     117@@ -332,6 +337,13 @@ bcm47xx_leds_linksys_wrtsl54gs[] __initc 
     118        BCM47XX_GPIO_LED(7, "unk", "dmz", 1, LEDS_GPIO_DEFSTATE_OFF), 
    114119 }; 
    115120  
     
    124129  
    125130 static const struct gpio_led 
    126 @@ -470,6 +482,9 @@ void __init bcm47xx_leds_register(void) 
     131@@ -432,6 +444,9 @@ void __init bcm47xx_leds_register(void) 
    127132        case BCM47XX_BOARD_ASUS_WL330GE: 
    128133                bcm47xx_set_pdata(bcm47xx_leds_asus_wl330ge); 
     
    134139                bcm47xx_set_pdata(bcm47xx_leds_asus_wl500gd); 
    135140                break; 
    136 @@ -598,6 +613,10 @@ void __init bcm47xx_leds_register(void) 
     141@@ -554,6 +569,10 @@ void __init bcm47xx_leds_register(void) 
    137142                bcm47xx_set_pdata(bcm47xx_leds_linksys_wrtsl54gs); 
    138143                break; 
     
    155160        BCM47XX_BOARD_ASUS_WL500GPV1, 
    156161        BCM47XX_BOARD_ASUS_WL500GPV2, 
    157 @@ -77,6 +78,8 @@ enum bcm47xx_board { 
     162@@ -75,6 +76,8 @@ enum bcm47xx_board { 
    158163        BCM47XX_BOARD_LINKSYS_WRT610NV2, 
    159164        BCM47XX_BOARD_LINKSYS_WRTSL54GS, 
  • trunk/target/linux/brcm47xx/patches-3.10/147-MIPS-BCM47xx-Distinguish-WRT54G-series-devices-by-bo.patch

    r41908 r41910  
    1 From 9fff5375229a4ba3a200747e079c46fa19b90797 Mon Sep 17 00:00:00 2001 
     1From 41a867cb07443c77c24747dcbad1a40002516469 Mon Sep 17 00:00:00 2001 
    22From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com> 
    3 Date: Fri, 20 Jun 2014 07:26:20 +0200 
    4 Subject: [3.17][PATCH 1/2] MIPS: BCM47XX: Distinguish WRT54G series devices by 
    5  boardtype 
     3Date: Fri, 20 Jun 2014 07:56:39 +0200 
     4Subject: [PATCH] MIPS: BCM47xx: Distinguish WRT54G series devices by boardtype 
    65MIME-Version: 1.0 
    76Content-Type: text/plain; charset=UTF-8 
     
    1312Reported-by: Catalin Patulea <cat@vv.carleton.ca> 
    1413Signed-off-by: Rafał Miłecki <zajec5@gmail.com> 
     14Cc: linux-mips@linux-mips.org 
     15Cc: Hauke Mehrtens <hauke@hauke-m.de> 
     16Patchwork: https://patchwork.linux-mips.org/patch/7112/ 
     17Signed-off-by: Ralf Baechle <ralf@linux-mips.org> 
    1518--- 
    1619 arch/mips/bcm47xx/board.c                          |  6 +++--- 
     
    2225--- a/arch/mips/bcm47xx/board.c 
    2326+++ b/arch/mips/bcm47xx/board.c 
    24 @@ -179,9 +179,9 @@ struct bcm47xx_board_type_list3 bcm47xx_ 
     27@@ -187,9 +187,9 @@ struct bcm47xx_board_type_list3 bcm47xx_ 
    2528        {{BCM47XX_BOARD_PHICOMM_M1, "Phicomm M1"}, "0x0590", "80", "0x1104"}, 
    2629        {{BCM47XX_BOARD_ZTE_H218N, "ZTE H218N"}, "0x053d", "1234", "0x1305"}, 
     
    3740--- a/arch/mips/bcm47xx/buttons.c 
    3841+++ b/arch/mips/bcm47xx/buttons.c 
    39 @@ -265,7 +265,7 @@ bcm47xx_buttons_linksys_wrt54g3gv2[] __i 
     42@@ -270,7 +270,7 @@ bcm47xx_buttons_linksys_wrt54g3gv2[] __i 
    4043 }; 
    4144  
     
    4649        BCM47XX_GPIO_KEY(6, KEY_RESTART), 
    4750 }; 
    48 @@ -501,12 +501,14 @@ int __init bcm47xx_buttons_register(void 
     51@@ -516,12 +516,14 @@ int __init bcm47xx_buttons_register(void 
    4952        case BCM47XX_BOARD_LINKSYS_WRT310NV1: 
    5053                err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrt310nv1); 
     
    6669--- a/arch/mips/bcm47xx/leds.c 
    6770+++ b/arch/mips/bcm47xx/leds.c 
    68 @@ -292,7 +292,7 @@ bcm47xx_leds_linksys_wrt310nv1[] __initc 
     71@@ -297,7 +297,7 @@ bcm47xx_leds_linksys_wrt310nv1[] __initc 
    6972 }; 
    7073  
     
    7578        BCM47XX_GPIO_LED(1, "unk", "power", 0, LEDS_GPIO_DEFSTATE_ON), 
    7679        BCM47XX_GPIO_LED(5, "white", "wps", 1, LEDS_GPIO_DEFSTATE_OFF), 
    77 @@ -538,12 +538,14 @@ void __init bcm47xx_leds_register(void) 
     80@@ -553,12 +553,14 @@ void __init bcm47xx_leds_register(void) 
    7881        case BCM47XX_BOARD_LINKSYS_WRT310NV1: 
    7982                bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt310nv1); 
     
    9598--- a/arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h 
    9699+++ b/arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h 
    97 @@ -70,7 +70,9 @@ enum bcm47xx_board { 
     100@@ -71,7 +71,9 @@ enum bcm47xx_board { 
    98101        BCM47XX_BOARD_LINKSYS_WRT310NV1, 
    99102        BCM47XX_BOARD_LINKSYS_WRT310NV2, 
  • trunk/target/linux/brcm47xx/patches-3.10/148-MIPS-BCM47xx-Fix-LEDs-on-WRT54GS-V1.0.patch

    r41908 r41910  
    1 From d12264ddf6c29ddab9889cd87a1e60d2209f9922 Mon Sep 17 00:00:00 2001 
     1From 7bb26b1691166d0d830c42c1a25caf82208bf90d Mon Sep 17 00:00:00 2001 
    22From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com> 
    3 Date: Fri, 20 Jun 2014 07:53:14 +0200 
    4 Subject: [3.17][PATCH 2/2] MIPS: BCM47XX: Fix LEDs on WRT54GS V1.0 
     3Date: Fri, 20 Jun 2014 07:56:40 +0200 
     4Subject: [PATCH] MIPS: BCM47xx: Fix LEDs on WRT54GS V1.0 
    55MIME-Version: 1.0 
    66Content-Type: text/plain; charset=UTF-8 
     
    99Reported-by: Catalin Patulea <cat@vv.carleton.ca> 
    1010Signed-off-by: Rafał Miłecki <zajec5@gmail.com> 
     11Acked-by: Hauke Mehrtens <hauke@hauke-m.de> 
     12Cc: linux-mips@linux-mips.org 
     13Cc: Hauke Mehrtens <hauke@hauke-m.de> 
     14Patchwork: https://patchwork.linux-mips.org/patch/7113/ 
     15Signed-off-by: Ralf Baechle <ralf@linux-mips.org> 
    1116--- 
    1217 arch/mips/bcm47xx/leds.c | 10 ++++++++++ 
     
    1520--- a/arch/mips/bcm47xx/leds.c 
    1621+++ b/arch/mips/bcm47xx/leds.c 
    17 @@ -306,6 +306,14 @@ bcm47xx_leds_linksys_wrt54g3gv2[] __init 
     22@@ -311,6 +311,14 @@ bcm47xx_leds_linksys_wrt54g3gv2[] __init 
    1823        BCM47XX_GPIO_LED(3, "blue", "3g", 0, LEDS_GPIO_DEFSTATE_OFF), 
    1924 }; 
     
    3035 bcm47xx_leds_linksys_wrt610nv1[] __initconst = { 
    3136        BCM47XX_GPIO_LED(0, "unk", "usb",  1, LEDS_GPIO_DEFSTATE_OFF), 
    32 @@ -542,6 +550,8 @@ void __init bcm47xx_leds_register(void) 
     37@@ -557,6 +565,8 @@ void __init bcm47xx_leds_register(void) 
    3338                bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt54g3gv2); 
    3439                break; 
  • trunk/target/linux/brcm47xx/patches-3.10/151-MIPS-BCM47XX-Devices-database-update-for-3.17.patch

    r41908 r41910  
     1From 9194b3431616567ffbf69ef970506d695912be0b Mon Sep 17 00:00:00 2001 
     2From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com> 
     3Date: Thu, 17 Jul 2014 23:24:30 +0200 
     4Subject: [PATCH] MIPS: BCM47XX: Devices database update for 3.17 
     5MIME-Version: 1.0 
     6Content-Type: text/plain; charset=UTF-8 
     7Content-Transfer-Encoding: 8bit 
     8 
     9Detect more devices and register leds & buttons for them. 
     10 
     11Signed-off-by: Rafał Miłecki <zajec5@gmail.com> 
     12Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> 
     13Cc: linux-mips@linux-mips.org 
     14Patchwork: https://patchwork.linux-mips.org/patch/7394/ 
     15Signed-off-by: Ralf Baechle <ralf@linux-mips.org> 
     16--- 
     17 arch/mips/bcm47xx/board.c   |  3 ++- 
     18 arch/mips/bcm47xx/buttons.c |  9 ++++++++ 
     19 arch/mips/bcm47xx/leds.c    | 53 +++++++++++++++++++++++++++++++++++++-------- 
     20 3 files changed, 55 insertions(+), 10 deletions(-) 
     21 
     22--- a/arch/mips/bcm47xx/board.c 
     23+++ b/arch/mips/bcm47xx/board.c 
     24@@ -57,6 +57,7 @@ struct bcm47xx_board_type_list1 bcm47xx_ 
     25 static const 
     26 struct bcm47xx_board_type_list1 bcm47xx_board_list_hardware_version[] __initconst = { 
     27        {{BCM47XX_BOARD_ASUS_RTN10U, "Asus RT-N10U"}, "RTN10U"}, 
     28+       {{BCM47XX_BOARD_ASUS_RTN10D, "Asus RT-N10D"}, "RTN10D"}, 
     29        {{BCM47XX_BOARD_ASUS_RTN12, "Asus RT-N12"}, "RT-N12"}, 
     30        {{BCM47XX_BOARD_ASUS_RTN12B1, "Asus RT-N12B1"}, "RTN12B1"}, 
     31        {{BCM47XX_BOARD_ASUS_RTN12C1, "Asus RT-N12C1"}, "RTN12C1"}, 
     32@@ -105,7 +106,7 @@ struct bcm47xx_board_type_list1 bcm47xx_ 
     33 /* ModelId */ 
     34 static const 
     35 struct bcm47xx_board_type_list1 bcm47xx_board_list_ModelId[] __initconst = { 
     36-       {{BCM47XX_BOARD_DELL_TM2300, "Dell WX-5565"}, "WX-5565"}, 
     37+       {{BCM47XX_BOARD_DELL_TM2300, "Dell TrueMobile 2300"}, "WX-5565"}, 
     38        {{BCM47XX_BOARD_MOTOROLA_WE800G, "Motorola WE800G"}, "WE800G"}, 
     39        {{BCM47XX_BOARD_MOTOROLA_WR850GP, "Motorola WR850GP"}, "WR850GP"}, 
     40        {{BCM47XX_BOARD_MOTOROLA_WR850GV2V3, "Motorola WR850G"}, "WR850G"}, 
     41--- a/arch/mips/bcm47xx/buttons.c 
     42+++ b/arch/mips/bcm47xx/buttons.c 
     43@@ -341,6 +341,12 @@ bcm47xx_buttons_netgear_wndr4500v1[] __i 
     44 }; 
     45  
     46 static const struct gpio_keys_button 
     47+bcm47xx_buttons_netgear_wnr3500lv1[] __initconst = { 
     48+       BCM47XX_GPIO_KEY(4, KEY_RESTART), 
     49+       BCM47XX_GPIO_KEY(6, KEY_WPS_BUTTON), 
     50+}; 
     51+ 
     52+static const struct gpio_keys_button 
     53 bcm47xx_buttons_netgear_wnr834bv2[] __initconst = { 
     54        BCM47XX_GPIO_KEY(6, KEY_RESTART), 
     55 }; 
     56@@ -557,6 +563,9 @@ int __init bcm47xx_buttons_register(void 
     57        case BCM47XX_BOARD_NETGEAR_WNDR4500V1: 
     58                err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wndr4500v1); 
     59                break; 
     60+       case BCM47XX_BOARD_NETGEAR_WNR3500L: 
     61+               err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wnr3500lv1); 
     62+               break; 
     63        case BCM47XX_BOARD_NETGEAR_WNR834BV2: 
     64                err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wnr834bv2); 
     65                break; 
    166--- a/arch/mips/bcm47xx/leds.c 
    267+++ b/arch/mips/bcm47xx/leds.c 
     
    2893  
    2994 static const struct gpio_led 
    30 @@ -216,8 +225,8 @@ bcm47xx_leds_linksys_e1000v1[] __initcon 
     95@@ -221,8 +230,8 @@ bcm47xx_leds_linksys_e1000v1[] __initcon 
    3196  
    3297 static const struct gpio_led 
     
    39104        BCM47XX_GPIO_LED(8, "blue", "wps", 0, LEDS_GPIO_DEFSTATE_OFF), 
    40105 }; 
    41 @@ -314,6 +323,16 @@ bcm47xx_leds_linksys_wrt54g_type_0101[] 
     106@@ -319,6 +328,16 @@ bcm47xx_leds_linksys_wrt54g_type_0101[] 
    42107        BCM47XX_GPIO_LED(7, "green", "dmz", 1, LEDS_GPIO_DEFSTATE_OFF), 
    43108 }; 
     
    56121 bcm47xx_leds_linksys_wrt610nv1[] __initconst = { 
    57122        BCM47XX_GPIO_LED(0, "unk", "usb",  1, LEDS_GPIO_DEFSTATE_OFF), 
    58 @@ -333,11 +352,10 @@ bcm47xx_leds_linksys_wrt610nv2[] __initc 
     123@@ -338,11 +357,10 @@ bcm47xx_leds_linksys_wrt610nv2[] __initc 
    59124  
    60125 static const struct gpio_led 
     
    71136 }; 
    72137  
    73  /* Motorola */ 
    74 @@ -385,6 +403,15 @@ bcm47xx_leds_netgear_wndr4500v1[] __init 
     138 /* Microsoft */ 
     139@@ -397,6 +415,15 @@ bcm47xx_leds_netgear_wndr4500v1[] __init 
    75140 }; 
    76141  
     
    88153        BCM47XX_GPIO_LED(2, "green", "power", 0, LEDS_GPIO_DEFSTATE_ON), 
    89154        BCM47XX_GPIO_LED(3, "amber", "power", 0, LEDS_GPIO_DEFSTATE_OFF), 
    90 @@ -425,6 +452,9 @@ void __init bcm47xx_leds_register(void) 
     155@@ -437,6 +464,9 @@ void __init bcm47xx_leds_register(void) 
    91156        case BCM47XX_BOARD_ASUS_RTN12: 
    92157                bcm47xx_set_pdata(bcm47xx_leds_asus_rtn12); 
     
    98163                bcm47xx_set_pdata(bcm47xx_leds_asus_rtn16); 
    99164                break; 
    100 @@ -553,6 +583,8 @@ void __init bcm47xx_leds_register(void) 
     165@@ -568,6 +598,8 @@ void __init bcm47xx_leds_register(void) 
    101166                bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt54g_type_0101); 
    102167                break; 
     
    107172                bcm47xx_set_pdata(bcm47xx_leds_linksys_wrt54g_generic); 
    108173                break; 
    109 @@ -582,6 +614,9 @@ void __init bcm47xx_leds_register(void) 
     174@@ -601,6 +633,9 @@ void __init bcm47xx_leds_register(void) 
    110175        case BCM47XX_BOARD_NETGEAR_WNDR4500V1: 
    111176                bcm47xx_set_pdata(bcm47xx_leds_netgear_wndr4500v1); 
     
    117182                bcm47xx_set_pdata(bcm47xx_leds_netgear_wnr834bv2); 
    118183                break; 
    119 --- a/arch/mips/bcm47xx/buttons.c 
    120 +++ b/arch/mips/bcm47xx/buttons.c 
    121 @@ -329,6 +329,12 @@ bcm47xx_buttons_netgear_wndr4500v1[] __i 
    122  }; 
    123   
    124  static const struct gpio_keys_button 
    125 +bcm47xx_buttons_netgear_wnr3500lv1[] __initconst = { 
    126 +       BCM47XX_GPIO_KEY(4, KEY_RESTART), 
    127 +       BCM47XX_GPIO_KEY(6, KEY_WPS_BUTTON), 
    128 +}; 
    129 + 
    130 +static const struct gpio_keys_button 
    131  bcm47xx_buttons_netgear_wnr834bv2[] __initconst = { 
    132         BCM47XX_GPIO_KEY(6, KEY_RESTART), 
    133  }; 
    134 @@ -538,6 +544,9 @@ int __init bcm47xx_buttons_register(void 
    135         case BCM47XX_BOARD_NETGEAR_WNDR4500V1: 
    136                 err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wndr4500v1); 
    137                 break; 
    138 +       case BCM47XX_BOARD_NETGEAR_WNR3500L: 
    139 +               err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wnr3500lv1); 
    140 +               break; 
    141         case BCM47XX_BOARD_NETGEAR_WNR834BV2: 
    142                 err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wnr834bv2); 
    143                 break; 
Note: See TracChangeset for help on using the changeset viewer.