ar71xx: add support for 3.8
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / patches-3.8 / 613-MIPS-ath79-add-TL-WDR3500-support.patch
1 --- a/arch/mips/ath79/machtypes.h
2 +++ b/arch/mips/ath79/machtypes.h
3 @@ -84,6 +84,7 @@ enum ath79_mach_type {
4 ATH79_MACH_TL_WA7510N_V1, /* TP-LINK TL-WA7510N v1*/
5 ATH79_MACH_TL_WA901ND, /* TP-LINK TL-WA901ND */
6 ATH79_MACH_TL_WA901ND_V2, /* TP-LINK TL-WA901ND v2 */
7 + ATH79_MACH_TL_WDR3500, /* TP-LINK TL-WDR3500 */
8 ATH79_MACH_TL_WDR4300, /* TP-LINK TL-WDR4300 */
9 ATH79_MACH_TL_WR1041N_V2, /* TP-LINK TL-WR1041N v2 */
10 ATH79_MACH_TL_WR1043ND, /* TP-LINK TL-WR1043ND */
11 --- a/arch/mips/ath79/Kconfig
12 +++ b/arch/mips/ath79/Kconfig
13 @@ -514,6 +514,17 @@ config ATH79_MACH_TL_WA901ND_V2
14 select ATH79_DEV_M25P80
15 select ATH79_DEV_WMAC
16
17 +config ATH79_MACH_TL_WDR3500
18 + bool "TP-LINK TL-WDR3500 board support"
19 + select SOC_AR934X
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 + select ATH79_DEV_WMAC
27 +
28 config ATH79_MACH_TL_WDR4300
29 bool "TP-LINK TL-WDR3600/4300/4310 board support"
30 select SOC_AR934X
31 --- a/arch/mips/ath79/Makefile
32 +++ b/arch/mips/ath79/Makefile
33 @@ -81,6 +81,7 @@ obj-$(CONFIG_ATH79_MACH_TL_MR3020) += ma
34 obj-$(CONFIG_ATH79_MACH_TL_MR3X20) += mach-tl-mr3x20.o
35 obj-$(CONFIG_ATH79_MACH_TL_WA901ND) += mach-tl-wa901nd.o
36 obj-$(CONFIG_ATH79_MACH_TL_WA901ND_V2) += mach-tl-wa901nd-v2.o
37 +obj-$(CONFIG_ATH79_MACH_TL_WDR3500) += mach-tl-wdr3500.o
38 obj-$(CONFIG_ATH79_MACH_TL_WDR4300) += mach-tl-wdr4300.o
39 obj-$(CONFIG_ATH79_MACH_TL_WR741ND) += mach-tl-wr741nd.o
40 obj-$(CONFIG_ATH79_MACH_TL_WR741ND_V4) += mach-tl-wr741nd-v4.o