mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
b894fbdfe0
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
64 lines
2.8 KiB
Diff
64 lines
2.8 KiB
Diff
From 4da27b6d550427a0560a15df36de99cb17629216 Mon Sep 17 00:00:00 2001
|
|
From: Florian Fainelli <f.fainelli@gmail.com>
|
|
Date: Thu, 6 Jan 2022 19:51:41 -0800
|
|
Subject: [PATCH] MIPS: BCM47XX: Add support for Netgear WN2500RP v1 & v2
|
|
|
|
Add support for the Netgear WN2500 RP v1 and v2 Wi-Fi range extenders
|
|
based on the BCM5357 chipset and supporting 802.11n and 802.11ac.
|
|
|
|
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
|
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
|
|
---
|
|
arch/mips/bcm47xx/board.c | 2 ++
|
|
arch/mips/bcm47xx/buttons.c | 9 +++++++++
|
|
arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h | 2 ++
|
|
3 files changed, 13 insertions(+)
|
|
|
|
--- a/arch/mips/bcm47xx/board.c
|
|
+++ b/arch/mips/bcm47xx/board.c
|
|
@@ -166,6 +166,8 @@ struct bcm47xx_board_type_list1 bcm47xx_
|
|
{{BCM47XX_BOARD_NETGEAR_WGR614V8, "Netgear WGR614 V8"}, "U12H072T00_NETGEAR"},
|
|
{{BCM47XX_BOARD_NETGEAR_WGR614V9, "Netgear WGR614 V9"}, "U12H094T00_NETGEAR"},
|
|
{{BCM47XX_BOARD_NETGEAR_WGR614_V10, "Netgear WGR614 V10"}, "U12H139T01_NETGEAR"},
|
|
+ {{BCM47XX_BOARD_NETGEAR_WN2500RP_V1, "Netgear WN2500RP V1"}, "U12H197T00_NETGEAR"},
|
|
+ {{BCM47XX_BOARD_NETGEAR_WN2500RP_V2, "Netgear WN2500RP V2"}, "U12H294T00_NETGEAR"},
|
|
{{BCM47XX_BOARD_NETGEAR_WNDR3300, "Netgear WNDR3300"}, "U12H093T00_NETGEAR"},
|
|
{{BCM47XX_BOARD_NETGEAR_WNDR3400V1, "Netgear WNDR3400 V1"}, "U12H155T00_NETGEAR"},
|
|
{{BCM47XX_BOARD_NETGEAR_WNDR3400V2, "Netgear WNDR3400 V2"}, "U12H187T00_NETGEAR"},
|
|
--- a/arch/mips/bcm47xx/buttons.c
|
|
+++ b/arch/mips/bcm47xx/buttons.c
|
|
@@ -415,6 +415,12 @@ bcm47xx_buttons_netgear_r6300_v1[] __ini
|
|
};
|
|
|
|
static const struct gpio_keys_button
|
|
+bcm47xx_buttons_netgear_wn2500rp_v1[] __initconst = {
|
|
+ BCM47XX_GPIO_KEY(12, KEY_RESTART),
|
|
+ BCM47XX_GPIO_KEY(31, KEY_WPS_BUTTON),
|
|
+};
|
|
+
|
|
+static const struct gpio_keys_button
|
|
bcm47xx_buttons_netgear_wndr3400v1[] __initconst = {
|
|
BCM47XX_GPIO_KEY(4, KEY_RESTART),
|
|
BCM47XX_GPIO_KEY(6, KEY_WPS_BUTTON),
|
|
@@ -709,6 +715,9 @@ int __init bcm47xx_buttons_register(void
|
|
case BCM47XX_BOARD_NETGEAR_R6300_V1:
|
|
err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_r6300_v1);
|
|
break;
|
|
+ case BCM47XX_BOARD_NETGEAR_WN2500RP_V1:
|
|
+ err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wn2500rp_v1);
|
|
+ break;
|
|
case BCM47XX_BOARD_NETGEAR_WNDR3400V1:
|
|
err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wndr3400v1);
|
|
break;
|
|
--- a/arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h
|
|
+++ b/arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h
|
|
@@ -104,6 +104,8 @@ enum bcm47xx_board {
|
|
BCM47XX_BOARD_NETGEAR_WGR614V8,
|
|
BCM47XX_BOARD_NETGEAR_WGR614V9,
|
|
BCM47XX_BOARD_NETGEAR_WGR614_V10,
|
|
+ BCM47XX_BOARD_NETGEAR_WN2500RP_V1,
|
|
+ BCM47XX_BOARD_NETGEAR_WN2500RP_V2,
|
|
BCM47XX_BOARD_NETGEAR_WNDR3300,
|
|
BCM47XX_BOARD_NETGEAR_WNDR3400V1,
|
|
BCM47XX_BOARD_NETGEAR_WNDR3400V2,
|