ar71xx: improve support for the My Net Wi-Fi Range Extender device
[openwrt.git] / target / linux / ar71xx / patches-3.10 / 623-MIPS-ath79-DIR505-support.patch
1 --- a/arch/mips/ath79/Kconfig
2 +++ b/arch/mips/ath79/Kconfig
3 @@ -254,6 +254,16 @@ config ATH79_MACH_WPE72
4         select ATH79_DEV_USB
5         select MYLOADER
6  
7 +config ATH79_MACH_DIR_505_A1
8 +       bool "D-Link DIR-505-A1 support"
9 +       select SOC_AR933X
10 +       select ATH79_DEV_ETH
11 +       select ATH79_DEV_GPIO_BUTTONS
12 +       select ATH79_DEV_LEDS_GPIO
13 +       select ATH79_DEV_M25P80
14 +       select ATH79_DEV_WMAC
15 +       select ATH79_NVRAM
16 +
17  config ATH79_MACH_DIR_600_A1
18         bool "D-Link DIR-600 A1/DIR-615 E4 support"
19         select SOC_AR724X
20 --- a/arch/mips/ath79/Makefile
21 +++ b/arch/mips/ath79/Makefile
22 @@ -53,6 +53,7 @@ obj-$(CONFIG_ATH79_MACH_ARCHER_C7)    += ma
23  obj-$(CONFIG_ATH79_MACH_AW_NR580)      += mach-aw-nr580.o
24  obj-$(CONFIG_ATH79_MACH_CAP4200AG)     += mach-cap4200ag.o
25  obj-$(CONFIG_ATH79_MACH_DB120)         += mach-db120.o
26 +obj-$(CONFIG_ATH79_MACH_DIR_505_A1)    += mach-dir-505-a1.o
27  obj-$(CONFIG_ATH79_MACH_DIR_600_A1)    += mach-dir-600-a1.o
28  obj-$(CONFIG_ATH79_MACH_DIR_615_C1)    += mach-dir-615-c1.o
29  obj-$(CONFIG_ATH79_MACH_DIR_825_B1)    += mach-dir-825-b1.o
30 --- a/arch/mips/ath79/machtypes.h
31 +++ b/arch/mips/ath79/machtypes.h
32 @@ -37,6 +37,7 @@ enum ath79_mach_type {
33         ATH79_MACH_CARAMBOLA2,          /* 8devices Carambola2 */
34         ATH79_MACH_DB120,               /* Atheros DB120 reference board */
35         ATH79_MACH_PB44,                /* Atheros PB44 reference board */
36 +       ATH79_MACH_DIR_505_A1,          /* D-Link DIR-505 rev. A1 */
37         ATH79_MACH_DIR_600_A1,          /* D-Link DIR-600 rev. A1 */
38         ATH79_MACH_DIR_615_C1,          /* D-Link DIR-615 rev. C1 */
39         ATH79_MACH_DIR_615_E4,          /* D-Link DIR-615 rev. E4 */