ar71xx: add support for compex wpj344
[openwrt.git] / target / linux / ar71xx / patches-3.18 / 800-MIPS-ath79-add-RB922GS-support.patch
1 --- a/arch/mips/ath79/Kconfig
2 +++ b/arch/mips/ath79/Kconfig
3 @@ -559,6 +559,16 @@ config ATH79_MACH_RB91X
4         select ATH79_DEV_USB
5         select ATH79_ROUTERBOOT
6  
7 +config ATH79_MACH_RB922
8 +       bool "MikroTik RouterBOARD 922 support"
9 +       select SOC_QCA955X
10 +       select ATH79_DEV_ETH
11 +       select ATH79_DEV_M25P80
12 +       select ATH79_DEV_NFC
13 +       select ATH79_DEV_USB
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 --- a/arch/mips/ath79/Makefile
21 +++ b/arch/mips/ath79/Makefile
22 @@ -96,6 +96,7 @@ obj-$(CONFIG_ATH79_MACH_R6100)                += mach-
23  obj-$(CONFIG_ATH79_MACH_RB4XX)         += mach-rb4xx.o
24  obj-$(CONFIG_ATH79_MACH_RB750)         += mach-rb750.o
25  obj-$(CONFIG_ATH79_MACH_RB91X)         += mach-rb91x.o
26 +obj-$(CONFIG_ATH79_MACH_RB922)         += mach-rb922.o
27  obj-$(CONFIG_ATH79_MACH_RB95X)         += mach-rb95x.o
28  obj-$(CONFIG_ATH79_MACH_RB2011)                += mach-rb2011.o
29  obj-$(CONFIG_ATH79_MACH_RBSXTLITE)     += mach-rbsxtlite.o
30 --- a/arch/mips/ath79/machtypes.h
31 +++ b/arch/mips/ath79/machtypes.h
32 @@ -103,6 +103,7 @@ enum ath79_mach_type {
33         ATH79_MACH_RB_750G_R3,          /* MikroTik RouterBOARD 750GL */
34         ATH79_MACH_RB_751,              /* MikroTik RouterBOARD 751 */
35         ATH79_MACH_RB_751G,             /* Mikrotik RouterBOARD 751G */
36 +       ATH79_MACH_RB_922GS,            /* Mikrotik RouterBOARD 911/922GS boards */
37         ATH79_MACH_RB_951G,             /* Mikrotik RouterBOARD 951G */
38         ATH79_MACH_RB_951U,             /* Mikrotik RouterBOARD 951Ui-2HnD */
39         ATH79_MACH_RB_2011G,            /* Mikrotik RouterBOARD 2011UAS-2HnD */
40 --- a/arch/mips/ath79/prom.c
41 +++ b/arch/mips/ath79/prom.c
42 @@ -184,7 +184,8 @@ void __init prom_init(void)
43         if (strstr(arcs_cmdline, "board=750Gr3") ||
44             strstr(arcs_cmdline, "board=951G") ||
45             strstr(arcs_cmdline, "board=2011L") ||
46 -           strstr(arcs_cmdline, "board=711Gr100"))
47 +           strstr(arcs_cmdline, "board=711Gr100") ||
48 +           strstr(arcs_cmdline, "board=922gs"))
49                 ath79_prom_append_cmdline("console", "ttyS0,115200");
50  }
51