MIPS: BCM47XX: Devices database update for 3.17
Subsystems (2)
Rafał Miłecki
maintainerPATCH 1/1 MIPS: BCM47XX: Devices database update for 3.17
Detect more devices and register leds & buttons for them.
Signed-off-by Rafał Miłecki <[email protected]>
Signed-off-by Hauke Mehrtens <[email protected]>
---
This is based on top of:
[3.17,1/2] MIPS: BCM47XX: Distinguish WRT54G series devices by boardtype [3.17,2/2] MIPS: BCM47XX: Fix LEDs on WRT54GS V1.0
Patchwork links for above patches:
https://patchwork.linux-mips.org/patch/7112/
https://patchwork.linux-mips.org/patch/7113/
It doesn't apply cleanly otherwise!
--- arch/mips/bcm47xx/board.c | 3 ++- arch/mips/bcm47xx/buttons.c | 9 ++++++++ arch/mips/bcm47xx/leds.c | 53 +++++++++++++++++++++++++++++++++++++-------- 3 files changed, 55 insertions(+), 10 deletions(-)
arch/mips/bcm47xx/board.c +2 -1
@@ -58,6 +58,7 @@ struct bcm47xx_board_type_list1 bcm47xx_board_list_machine_name[] __initconst =static const struct bcm47xx_board_type_list1 bcm47xx_board_list_hardware_version[]__initconst = { {{BCM47XX_BOARD_ASUS_RTN10U ,"Asus RT-N10U" },"RTN10U" }, + {{BCM47XX_BOARD_ASUS_RTN10D ,"Asus RT-N10D" },"RTN10D" }, {{BCM47XX_BOARD_ASUS_RTN12 ,"Asus RT-N12" },"RT-N12" }, {{BCM47XX_BOARD_ASUS_RTN12B1 ,"Asus RT-N12B1" },"RTN12B1" }, {{BCM47XX_BOARD_ASUS_RTN12C1 ,"Asus RT-N12C1" },"RTN12C1" },
@@ -98,7 +99,7 @@ struct bcm47xx_board_type_list1 bcm47xx_board_list_productid[] __initconst = {/* ModelId */ static const struct bcm47xx_board_type_list1 bcm47xx_board_list_ModelId[]__initconst = { - {{BCM47XX_BOARD_DELL_TM2300 ,"Dell WX-5565" },"WX-5565" }, + {{BCM47XX_BOARD_DELL_TM2300 ,"Dell TrueMobile 2300" },"WX-5565" }, {{BCM47XX_BOARD_MOTOROLA_WE800G ,"Motorola WE800G" },"WE800G" }, {{BCM47XX_BOARD_MOTOROLA_WR850GP ,"Motorola WR850GP" },"WR850GP" }, {{BCM47XX_BOARD_MOTOROLA_WR850GV2V3 ,"Motorola WR850G" },"WR850G" },
arch/mips/bcm47xx/buttons.c +9 -0
@@ -329,6 +329,12 @@ bcm47xx_buttons_netgear_wndr4500v1[] __initconst = { };static const struct gpio_keys_button +bcm47xx_buttons_netgear_wnr3500lv1[]__initconst = { +BCM47XX_GPIO_KEY (4 ,KEY_RESTART ), +BCM47XX_GPIO_KEY (6 ,KEY_WPS_BUTTON ), +}; + +static const struct gpio_keys_button bcm47xx_buttons_netgear_wnr834bv2[]__initconst = {BCM47XX_GPIO_KEY (6 ,KEY_RESTART ), };
@@ -538,6 +544,9 @@ int __init bcm47xx_buttons_register(void)case BCM47XX_BOARD_NETGEAR_WNDR4500V1 : err =bcm47xx_copy_bdata (bcm47xx_buttons_netgear_wndr4500v1);break ; +case BCM47XX_BOARD_NETGEAR_WNR3500L : + err =bcm47xx_copy_bdata (bcm47xx_buttons_netgear_wnr3500lv1); +break ;case BCM47XX_BOARD_NETGEAR_WNR834BV2 : err =bcm47xx_copy_bdata (bcm47xx_buttons_netgear_wnr834bv2);break ;
arch/mips/bcm47xx/leds.c +44 -9
107 lines not on this page · raw message
Signature · 1 line
1.8.4.5