ar71xx: add kernel support for Netgear WNR2200 wireless router
[openwrt.git] / target / linux / ar71xx / patches-3.10 / 624-MIPS-ath79-WNR2200-support.patch
1 --- a/arch/mips/ath79/machtypes.h
2 +++ b/arch/mips/ath79/machtypes.h
3 @@ -128,6 +128,7 @@ enum ath79_mach_type {
4         ATH79_MACH_WNDR4300,            /* NETGEAR WNDR4300 */
5         ATH79_MACH_WNR2000,             /* NETGEAR WNR2000 */
6         ATH79_MACH_WNR2000_V3,          /* NETGEAR WNR2000 v3 */
7 +       ATH79_MACH_WNR2200,             /* NETGEAR WNR2200 */
8         ATH79_MACH_WNR612_V2,           /* NETGEAR WNR612 v2 */
9         ATH79_MACH_WP543,               /* Compex WP543 */
10         ATH79_MACH_WPE72,               /* Compex WPE72 */
11 --- a/arch/mips/ath79/Kconfig
12 +++ b/arch/mips/ath79/Kconfig
13 @@ -437,6 +437,16 @@ config ATH79_MACH_WNR2000_V3
14         select ATH79_DEV_LEDS_GPIO
15         select ATH79_DEV_M25P80
16  
17 +       config ATH79_MACH_WNR2200
18 +       bool "NETGEAR WNR2200 board support"
19 +       select SOC_AR724X
20 +       select ATH79_DEV_AP9X_PCI if PCI
21 +       select ATH79_DEV_ETH
22 +       select ATH79_DEV_GPIO_BUTTONS
23 +       select ATH79_DEV_LEDS_GPIO
24 +       select ATH79_DEV_M25P80
25 +       select ATH79_DEV_USB
26 +
27  config ATH79_MACH_OM2P
28         bool "OpenMesh OM2P board support"
29         select SOC_AR724X
30 --- a/arch/mips/ath79/Makefile
31 +++ b/arch/mips/ath79/Makefile
32 @@ -105,6 +105,7 @@ obj-$(CONFIG_ATH79_MACH_WNDR3700)   += mac
33  obj-$(CONFIG_ATH79_MACH_WNDR4300)      += mach-wndr4300.o
34  obj-$(CONFIG_ATH79_MACH_WNR2000)       += mach-wnr2000.o
35  obj-$(CONFIG_ATH79_MACH_WNR2000_V3)    += mach-wnr2000-v3.o
36 +obj-$(CONFIG_ATH79_MACH_WNR2200)       += mach-wnr2200.o
37  obj-$(CONFIG_ATH79_MACH_WP543)         += mach-wp543.o
38  obj-$(CONFIG_ATH79_MACH_WPE72)         += mach-wpe72.o
39  obj-$(CONFIG_ATH79_MACH_WRT160NL)      += mach-wrt160nl.o