ar71xx: improve support for the My Net Wi-Fi Range Extender device
[openwrt.git] / target / linux / ar71xx / patches-3.10 / 629-MIPS-ath79-add-dragino2-support.patch
1 --- a/arch/mips/ath79/Kconfig
2 +++ b/arch/mips/ath79/Kconfig
3 @@ -305,6 +305,16 @@ config ATH79_MACH_DIR_825_C1
4         select ATH79_DEV_USB
5         select ATH79_DEV_WMAC
6  
7 +config ATH79_MACH_DRAGINO2
8 +       bool "DRAGINO V2 support"
9 +       select SOC_AR933X
10 +       select ATH79_DEV_M25P80
11 +       select ATH79_DEV_GPIO_BUTTONS
12 +       select ATH79_DEV_LEDS_GPIO
13 +       select ATH79_DEV_WMAC
14 +       select ATH79_DEV_ETH
15 +       select ATH79_DEV_USB
16 +
17  config ATH79_MACH_EW_DORIN
18         bool "embedded wireless Dorin Platform support"
19         select SOC_AR933X
20 --- a/arch/mips/ath79/Makefile
21 +++ b/arch/mips/ath79/Makefile
22 @@ -58,6 +58,7 @@ obj-$(CONFIG_ATH79_MACH_DIR_600_A1)   += m
23  obj-$(CONFIG_ATH79_MACH_DIR_615_C1)    += mach-dir-615-c1.o
24  obj-$(CONFIG_ATH79_MACH_DIR_825_B1)    += mach-dir-825-b1.o
25  obj-$(CONFIG_ATH79_MACH_DIR_825_C1)    += mach-dir-825-c1.o
26 +obj-$(CONFIG_ATH79_MACH_DRAGINO2)      += mach-dragino2.o
27  obj-$(CONFIG_ATH79_MACH_EW_DORIN)      += mach-ew-dorin.o
28  obj-$(CONFIG_ATH79_MACH_EAP7660D)      += mach-eap7660d.o
29  obj-$(CONFIG_ATH79_MACH_JA76PF)                += mach-ja76pf.o
30 --- a/arch/mips/ath79/machtypes.h
31 +++ b/arch/mips/ath79/machtypes.h
32 @@ -44,6 +44,7 @@ enum ath79_mach_type {
33         ATH79_MACH_DIR_825_B1,          /* D-Link DIR-825 rev. B1 */
34         ATH79_MACH_DIR_825_C1,          /* D-Link DIR-825 rev. C1 */
35         ATH79_MACH_DIR_835_A1,          /* D-Link DIR-835 rev. A1 */
36 +       ATH79_MACH_DRAGINO2,            /* Dragino Version 2 */
37         ATH79_MACH_EW_DORIN,            /* embedded wireless Dorin Platform */
38         ATH79_MACH_EW_DORIN_ROUTER,     /* embedded wireless Dorin Router Platform */
39         ATH79_MACH_EAP7660D,            /* Senao EAP7660D */