ar71xx: improve support for the My Net Wi-Fi Range Extender device
[openwrt.git] / target / linux / ar71xx / patches-3.10 / 632-MIPS-ath79-add-MyNet-Wifi-Range-Extender-support.patch
1 --- a/arch/mips/ath79/machtypes.h
2 +++ b/arch/mips/ath79/machtypes.h
3 @@ -56,6 +56,7 @@ enum ath79_mach_type {
4         ATH79_MACH_MR600V2,             /* OpenMesh MR600v2 */
5         ATH79_MACH_MR600,               /* OpenMesh MR600 */
6         ATH79_MACH_MYNET_N600,          /* WD My Net N600 */
7 +       ATH79_MACH_MYNET_REXT,          /* WD My Net Wi-Fi Range Extender */
8         ATH79_MACH_MZK_W04NU,           /* Planex MZK-W04NU */
9         ATH79_MACH_MZK_W300NH,          /* Planex MZK-W300NH */
10         ATH79_MACH_NBG460N,             /* Zyxel NBG460N/550N/550NH */
11 --- a/arch/mips/ath79/Makefile
12 +++ b/arch/mips/ath79/Makefile
13 @@ -67,6 +67,7 @@ obj-$(CONFIG_ATH79_MACH_JWAP003)      += mach
14  obj-$(CONFIG_ATH79_MACH_HORNET_UB)     += mach-hornet-ub.o
15  obj-$(CONFIG_ATH79_MACH_MR600)         += mach-mr600.o
16  obj-$(CONFIG_ATH79_MACH_MYNET_N600)    += mach-mynet-n600.o
17 +obj-$(CONFIG_ATH79_MACH_MYNET_REXT)    += mach-mynet-rext.o
18  obj-$(CONFIG_ATH79_MACH_MZK_W04NU)     += mach-mzk-w04nu.o
19  obj-$(CONFIG_ATH79_MACH_MZK_W300NH)    += mach-mzk-w300nh.o
20  obj-$(CONFIG_ATH79_MACH_NBG460N)       += mach-nbg460n.o
21 --- a/arch/mips/ath79/Kconfig
22 +++ b/arch/mips/ath79/Kconfig
23 @@ -801,6 +801,17 @@ config ATH79_MACH_MYNET_N600
24         select ATH79_DEV_WMAC
25         select ATH79_NVRAM
26  
27 +config ATH79_MACH_MYNET_REXT
28 +       bool "WD My Net Wi-Fi Range Extender board support"
29 +       select SOC_AR934X
30 +       select ATH79_DEV_AP9X_PCI if PCI
31 +       select ATH79_DEV_ETH
32 +       select ATH79_DEV_GPIO_BUTTONS
33 +       select ATH79_DEV_LEDS_GPIO
34 +       select ATH79_DEV_M25P80
35 +       select ATH79_DEV_WMAC
36 +       select ATH79_NVRAM
37 +
38  config ATH79_MACH_ZCN_1523H
39         bool "Zcomax ZCN-1523H support"
40         select SOC_AR724X