ar71xx: register the NAND controller device on the RB2011
[openwrt.git] / target / linux / ar71xx / patches-3.3 / 613-RB2011-support.patch
1 --- a/arch/mips/ath79/Kconfig
2 +++ b/arch/mips/ath79/Kconfig
3 @@ -335,6 +335,12 @@ config ATH79_MACH_RB750
4         select ATH79_ROUTERBOOT
5         select RLE_DECOMPRESS
6  
7 +config ATH79_MACH_RB2011
8 +       bool "MikroTik RouterBOARD 2011 support"
9 +       select SOC_AR934x
10 +       select ATH79_DEV_ETH
11 +       select ATH79_DEV_NFC
12 +
13  config ATH79_MACH_WNDR3700
14         bool "NETGEAR WNDR3700 board support"
15         select SOC_AR71XX
16 --- a/arch/mips/ath79/machtypes.h
17 +++ b/arch/mips/ath79/machtypes.h
18 @@ -61,6 +61,7 @@ enum ath79_mach_type {
19         ATH79_MACH_RB_750G_R3,          /* MikroTik RouterBOARD 750GL */
20         ATH79_MACH_RB_751,              /* MikroTik RouterBOARD 751 */
21         ATH79_MACH_RB_751G,             /* Mikrotik RouterBOARD 751G */
22 +       ATH79_MACH_RB_2011L,            /* Mikrotik RouterBOARD 2011L */
23         ATH79_MACH_RW2458N,             /* Redwave RW2458N */
24         ATH79_MACH_TEW_632BRP,          /* TRENDnet TEW-632BRP */
25         ATH79_MACH_TEW_673GRU,          /* TRENDnet TEW-673GRU */
26 --- a/arch/mips/ath79/Makefile
27 +++ b/arch/mips/ath79/Makefile
28 @@ -67,6 +67,7 @@ obj-$(CONFIG_ATH79_MACH_PB44)         += mach-p
29  obj-$(CONFIG_ATH79_MACH_PB92)          += mach-pb92.o
30  obj-$(CONFIG_ATH79_MACH_RB4XX)         += mach-rb4xx.o
31  obj-$(CONFIG_ATH79_MACH_RB750)         += mach-rb750.o
32 +obj-$(CONFIG_ATH79_MACH_RB2011)                += mach-rb2011.o
33  obj-$(CONFIG_ATH79_MACH_RW2458N)       += mach-rw2458n.o
34  obj-$(CONFIG_ATH79_MACH_TEW_632BRP)    += mach-tew-632brp.o
35  obj-$(CONFIG_ATH79_MACH_TEW_673GRU)    += mach-tew-673gru.o
36 --- a/arch/mips/ath79/prom.c
37 +++ b/arch/mips/ath79/prom.c
38 @@ -181,7 +181,8 @@ void __init prom_init(void)
39                 }
40         }
41  
42 -       if (strstr(arcs_cmdline, "board=750Gr3"))
43 +       if (strstr(arcs_cmdline, "board=750Gr3") ||
44 +           strstr(arcs_cmdline, "board=2011L"))
45                 ath79_prom_append_cmdline("console", "ttyS0,115200");
46  }
47