ar71xx: add support for the Allnet ALL0315N board
[openwrt/openwrt.git] / target / linux / ar71xx / patches-3.3 / 612-ALL0315N-support.patch
1 Index: linux-3.3.8/arch/mips/ath79/Kconfig
2 ===================================================================
3 --- linux-3.3.8.orig/arch/mips/ath79/Kconfig
4 +++ linux-3.3.8/arch/mips/ath79/Kconfig
5 @@ -38,6 +38,15 @@ config ATH79_MACH_ALL0258N
6 select ATH79_DEV_LEDS_GPIO
7 select ATH79_DEV_M25P80
8
9 +config ATH79_MACH_ALL0315N
10 + bool "Allnet ALL0315N support"
11 + select SOC_AR724X
12 + select ATH79_DEV_AP9X_PCI if PCI
13 + select ATH79_DEV_ETH
14 + select ATH79_DEV_GPIO_BUTTONS
15 + select ATH79_DEV_LEDS_GPIO
16 + select ATH79_DEV_M25P80
17 +
18 config ATH79_MACH_AP113
19 bool "Atheros AP113 board support"
20 select SOC_AR724X
21 Index: linux-3.3.8/arch/mips/ath79/Makefile
22 ===================================================================
23 --- linux-3.3.8.orig/arch/mips/ath79/Makefile
24 +++ linux-3.3.8/arch/mips/ath79/Makefile
25 @@ -39,6 +39,7 @@ obj-$(CONFIG_ATH79_PCI_ATH9K_FIXUP) += p
26 obj-$(CONFIG_ATH79_MACH_ALFA_AP96) += mach-alfa-ap96.o
27 obj-$(CONFIG_ATH79_MACH_ALFA_NX) += mach-alfa-nx.o
28 obj-$(CONFIG_ATH79_MACH_ALL0258N) += mach-all0258n.o
29 +obj-$(CONFIG_ATH79_MACH_ALL0315N) += mach-all0315n.o
30 obj-$(CONFIG_ATH79_MACH_AP113) += mach-ap113.o
31 obj-$(CONFIG_ATH79_MACH_AP121) += mach-ap121.o
32 obj-$(CONFIG_ATH79_MACH_AP136) += mach-ap136.o
33 Index: linux-3.3.8/arch/mips/ath79/machtypes.h
34 ===================================================================
35 --- linux-3.3.8.orig/arch/mips/ath79/machtypes.h
36 +++ linux-3.3.8/arch/mips/ath79/machtypes.h
37 @@ -20,6 +20,7 @@ enum ath79_mach_type {
38 ATH79_MACH_ALFA_NX, /* ALFA Network N2/N5 board */
39 ATH79_MACH_ALL0258N, /* Allnet ALL0258N */
40 ATH79_MACH_ALL0305, /* Allnet ALL0305 */
41 + ATH79_MACH_ALL0315N, /* Allnet ALL0315N */
42 ATH79_MACH_AP113, /* Atheros AP113 reference board */
43 ATH79_MACH_AP121, /* Atheros AP121 reference board */
44 ATH79_MACH_AP121_MINI, /* Atheros AP121-MINI reference board */