8740942d6f1553506888a95bd7900626ed344336
[openwrt/staging/xback.git] /
1 From 15e690af5cc3cd8f5d14ee2aa3a093f80196110e Mon Sep 17 00:00:00 2001
2 From: Florian Fainelli <f.fainelli@gmail.com>
3 Date: Thu, 6 Jan 2022 19:51:40 -0800
4 Subject: [PATCH] MIPS: BCM47XX: Add support for Netgear R6300 v1
5
6 Add support for the Netgear R6300 v1 Wi-Fi router using a Broadcom
7 BCM4706 chipset and supporting 802.11n and 802.11ac.
8
9 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
10 Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
11 ---
12 arch/mips/bcm47xx/board.c | 1 +
13 arch/mips/bcm47xx/buttons.c | 8 ++++++++
14 arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h | 1 +
15 3 files changed, 10 insertions(+)
16
17 --- a/arch/mips/bcm47xx/board.c
18 +++ b/arch/mips/bcm47xx/board.c
19 @@ -162,6 +162,7 @@ struct bcm47xx_board_type_list1 bcm47xx_
20 {{BCM47XX_BOARD_LUXUL_XWR_600_V1, "Luxul XWR-600 V1"}, "luxul_xwr600_v1"},
21 {{BCM47XX_BOARD_LUXUL_XWR_1750_V1, "Luxul XWR-1750 V1"}, "luxul_xwr1750_v1"},
22 {{BCM47XX_BOARD_NETGEAR_R6200_V1, "Netgear R6200 V1"}, "U12H192T00_NETGEAR"},
23 + {{BCM47XX_BOARD_NETGEAR_R6300_V1, "Netgear R6300 V1"}, "U12H218T00_NETGEAR"},
24 {{BCM47XX_BOARD_NETGEAR_WGR614V8, "Netgear WGR614 V8"}, "U12H072T00_NETGEAR"},
25 {{BCM47XX_BOARD_NETGEAR_WGR614V9, "Netgear WGR614 V9"}, "U12H094T00_NETGEAR"},
26 {{BCM47XX_BOARD_NETGEAR_WGR614_V10, "Netgear WGR614 V10"}, "U12H139T01_NETGEAR"},
27 --- a/arch/mips/bcm47xx/buttons.c
28 +++ b/arch/mips/bcm47xx/buttons.c
29 @@ -410,6 +410,11 @@ bcm47xx_buttons_netgear_r6200_v1[] __ini
30 };
31
32 static const struct gpio_keys_button
33 +bcm47xx_buttons_netgear_r6300_v1[] __initconst = {
34 + BCM47XX_GPIO_KEY(6, KEY_RESTART),
35 +};
36 +
37 +static const struct gpio_keys_button
38 bcm47xx_buttons_netgear_wndr3400v1[] __initconst = {
39 BCM47XX_GPIO_KEY(4, KEY_RESTART),
40 BCM47XX_GPIO_KEY(6, KEY_WPS_BUTTON),
41 @@ -701,6 +706,9 @@ int __init bcm47xx_buttons_register(void
42 case BCM47XX_BOARD_NETGEAR_R6200_V1:
43 err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_r6200_v1);
44 break;
45 + case BCM47XX_BOARD_NETGEAR_R6300_V1:
46 + err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_r6300_v1);
47 + break;
48 case BCM47XX_BOARD_NETGEAR_WNDR3400V1:
49 err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wndr3400v1);
50 break;
51 --- a/arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h
52 +++ b/arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h
53 @@ -100,6 +100,7 @@ enum bcm47xx_board {
54 BCM47XX_BOARD_MOTOROLA_WR850GV2V3,
55
56 BCM47XX_BOARD_NETGEAR_R6200_V1,
57 + BCM47XX_BOARD_NETGEAR_R6300_V1,
58 BCM47XX_BOARD_NETGEAR_WGR614V8,
59 BCM47XX_BOARD_NETGEAR_WGR614V9,
60 BCM47XX_BOARD_NETGEAR_WGR614_V10,