add D-link DGL-5500 A1 support
[openwrt/openwrt.git] / target / linux / ar71xx / patches-3.14 / 733-MIPS-ath79-add-DGL-5500-A1.patch
1 --- a/arch/mips/ath79/machtypes.h
2 +++ b/arch/mips/ath79/machtypes.h
3 @@ -40,6 +40,7 @@ enum ath79_mach_type {
4 ATH79_MACH_CPE510, /* TP-LINK CPE510 */
5 ATH79_MACH_DB120, /* Atheros DB120 reference board */
6 ATH79_MACH_PB44, /* Atheros PB44 reference board */
7 + ATH79_MACH_DGL_5500_A1, /* D-link DGL-5500 rev. A1 */
8 ATH79_MACH_DHP_1565_A1, /* D-Link DHP-1565 rev. A1 */
9 ATH79_MACH_DIR_505_A1, /* D-Link DIR-505 rev. A1 */
10 ATH79_MACH_DIR_600_A1, /* D-Link DIR-600 rev. A1 */
11 --- a/arch/mips/ath79/Makefile
12 +++ b/arch/mips/ath79/Makefile
13 @@ -55,6 +55,7 @@ obj-$(CONFIG_ATH79_MACH_BHU_BXU2000N2_A)
14 obj-$(CONFIG_ATH79_MACH_CAP4200AG) += mach-cap4200ag.o
15 obj-$(CONFIG_ATH79_MACH_CPE510) += mach-cpe510.o
16 obj-$(CONFIG_ATH79_MACH_DB120) += mach-db120.o
17 +obj-$(CONFIG_ATH79_MACH_DGL_5500_A1) += mach-dgl-5500-a1.o
18 obj-$(CONFIG_ATH79_MACH_DHP_1565_A1) += mach-dhp-1565-a1.o
19 obj-$(CONFIG_ATH79_MACH_DIR_505_A1) += mach-dir-505-a1.o
20 obj-$(CONFIG_ATH79_MACH_DIR_600_A1) += mach-dir-600-a1.o
21 --- a/arch/mips/ath79/Kconfig
22 +++ b/arch/mips/ath79/Kconfig
23 @@ -293,6 +293,16 @@ config ATH79_MACH_WPE72
24 select ATH79_DEV_USB
25 select MYLOADER
26
27 +config ATH79_MACH_DGL_5500_A1
28 + bool "D-Link DGL-5500 A1 support"
29 + select SOC_QCA955X
30 + select ATH79_DEV_ETH
31 + select ATH79_DEV_GPIO_BUTTONS
32 + select ATH79_DEV_LEDS_GPIO
33 + select ATH79_DEV_M25P80
34 + select ATH79_DEV_WMAC
35 + select ATH79_DEV_USB
36 +
37 config ATH79_MACH_DHP_1565_A1
38 bool "D-Link DHP-1565 rev. A1 board support"
39 select SOC_AR934X