ar71xx: add support for 3.8
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / patches-3.8 / 615-MIPS-ath79-RB951G-support.patch
1 --- a/arch/mips/ath79/machtypes.h
2 +++ b/arch/mips/ath79/machtypes.h
3 @@ -70,6 +70,7 @@ enum ath79_mach_type {
4 ATH79_MACH_RB_750G_R3, /* MikroTik RouterBOARD 750GL */
5 ATH79_MACH_RB_751, /* MikroTik RouterBOARD 751 */
6 ATH79_MACH_RB_751G, /* Mikrotik RouterBOARD 751G */
7 + ATH79_MACH_RB_951G, /* Mikrotik RouterBOARD 951G */
8 ATH79_MACH_RB_2011G, /* Mikrotik RouterBOARD 2011UAS-2HnD */
9 ATH79_MACH_RB_2011L, /* Mikrotik RouterBOARD 2011L */
10 ATH79_MACH_RW2458N, /* Redwave RW2458N */
11 --- a/arch/mips/ath79/Kconfig
12 +++ b/arch/mips/ath79/Kconfig
13 @@ -360,6 +360,16 @@ config ATH79_MACH_RB750
14 select ATH79_ROUTERBOOT
15 select RLE_DECOMPRESS
16
17 +config ATH79_MACH_RB95X
18 + bool "MikroTik RouterBOARD 95X support"
19 + select SOC_AR934x
20 + select ATH79_DEV_ETH
21 + select ATH79_DEV_NFC
22 + select ATH79_DEV_WMAC
23 + select ATH79_DEV_USB
24 + select ATH79_ROUTERBOOT
25 + select RLE_DECOMPRESS
26 +
27 config ATH79_MACH_RB2011
28 bool "MikroTik RouterBOARD 2011 support"
29 select SOC_AR934x
30 --- a/arch/mips/ath79/Makefile
31 +++ b/arch/mips/ath79/Makefile
32 @@ -71,6 +71,7 @@ obj-$(CONFIG_ATH79_MACH_PB44) += mach-p
33 obj-$(CONFIG_ATH79_MACH_PB92) += mach-pb92.o
34 obj-$(CONFIG_ATH79_MACH_RB4XX) += mach-rb4xx.o
35 obj-$(CONFIG_ATH79_MACH_RB750) += mach-rb750.o
36 +obj-$(CONFIG_ATH79_MACH_RB95X) += mach-rb95x.o
37 obj-$(CONFIG_ATH79_MACH_RB2011) += mach-rb2011.o
38 obj-$(CONFIG_ATH79_MACH_RW2458N) += mach-rw2458n.o
39 obj-$(CONFIG_ATH79_MACH_TEW_632BRP) += mach-tew-632brp.o
40 --- a/arch/mips/ath79/prom.c
41 +++ b/arch/mips/ath79/prom.c
42 @@ -182,6 +182,7 @@ void __init prom_init(void)
43 }
44
45 if (strstr(arcs_cmdline, "board=750Gr3") ||
46 + strstr(arcs_cmdline, "board=951G") ||
47 strstr(arcs_cmdline, "board=2011L"))
48 ath79_prom_append_cmdline("console", "ttyS0,115200");
49 }