0796c05b2f9def400424048304af9644181b4469
[openwrt.git] / target / linux / ar71xx / patches-3.14 / 737-MIPS-ath79-add-TL-WA701NDv2-support.patch
1 Index: linux-3.14.28/arch/mips/ath79/Kconfig
2 ===================================================================
3 --- linux-3.14.28.orig/arch/mips/ath79/Kconfig
4 +++ linux-3.14.28/arch/mips/ath79/Kconfig
5 @@ -803,6 +803,16 @@ config ATH79_MACH_TL_WAX50RE
6         select ATH79_DEV_M25P80
7         select ATH79_DEV_WMAC
8  
9 +config ATH79_MACH_TL_WA701ND_V2
10 +       bool "TP-LINK TL-WA701ND v2 support"
11 +       select SOC_AR933X
12 +       select ATH79_DEV_ETH
13 +       select ATH79_DEV_GPIO_BUTTONS
14 +       select ATH79_DEV_LEDS_GPIO
15 +       select ATH79_DEV_M25P80
16 +       select ATH79_DEV_USB
17 +       select ATH79_DEV_WMAC
18 +
19  config ATH79_MACH_TL_WA830RE_V2
20         bool "TP-LINK TL-WA830RE v2 support"
21         select SOC_AR934X
22 Index: linux-3.14.28/arch/mips/ath79/Makefile
23 ===================================================================
24 --- linux-3.14.28.orig/arch/mips/ath79/Makefile
25 +++ linux-3.14.28/arch/mips/ath79/Makefile
26 @@ -109,6 +109,7 @@ obj-$(CONFIG_ATH79_MACH_TL_MR13U)   += mac
27  obj-$(CONFIG_ATH79_MACH_TL_MR3020)     += mach-tl-mr3020.o
28  obj-$(CONFIG_ATH79_MACH_TL_MR3X20)     += mach-tl-mr3x20.o
29  obj-$(CONFIG_ATH79_MACH_TL_WAX50RE)     += mach-tl-wax50re.o
30 +obj-$(CONFIG_ATH79_MACH_TL_WA701ND_V2) += mach-tl-wa701nd-v2.o
31  obj-$(CONFIG_ATH79_MACH_TL_WA830RE_V2) += mach-tl-wa830re-v2.o
32  obj-$(CONFIG_ATH79_MACH_TL_WA901ND)    += mach-tl-wa901nd.o
33  obj-$(CONFIG_ATH79_MACH_TL_WA901ND_V2) += mach-tl-wa901nd-v2.o
34 Index: linux-3.14.28/arch/mips/ath79/machtypes.h
35 ===================================================================
36 --- linux-3.14.28.orig/arch/mips/ath79/machtypes.h
37 +++ linux-3.14.28/arch/mips/ath79/machtypes.h
38 @@ -126,6 +126,7 @@ enum ath79_mach_type {
39         ATH79_MACH_TL_MR3220_V2,        /* TP-LINK TL-MR3220 v2 */
40         ATH79_MACH_TL_MR3420,           /* TP-LINK TL-MR3420 */
41         ATH79_MACH_TL_MR3420_V2,        /* TP-LINK TL-MR3420 v2 */
42 +       ATH79_MACH_TL_WA701ND_V2,       /* TP-LINK TL-WA701ND v2 */
43         ATH79_MACH_TL_WA750RE,          /* TP-LINK TL-WA750RE */
44         ATH79_MACH_TL_WA7510N_V1,       /* TP-LINK TL-WA7510N v1*/
45         ATH79_MACH_TL_WA850RE,          /* TP-LINK TL-WA850RE */