ath79: enable factory.bin and adjust profile of ECB1750
[openwrt/openwrt.git] / target / linux / ath79 / patches-5.4 / 920-mikrotik-rb4xx.patch
1 --- a/drivers/mfd/Kconfig
2 +++ b/drivers/mfd/Kconfig
3 @@ -2012,5 +2012,13 @@ config RAVE_SP_CORE
4 Select this to get support for the Supervisory Processor
5 device found on several devices in RAVE line of hardware.
6
7 +config MFD_RB4XX_CPLD
8 + tristate "CPLD driver for Mikrotik RB4xx series boards
9 + select MFD_CORE
10 + depends on ATH79 || COMPILE_TEST
11 + help
12 + Enables support for the CPLD chip (NAND & GPIO) on Mikrotik
13 + Routerboard RB4xx series.
14 +
15 endmenu
16 endif
17 --- a/drivers/mfd/Makefile
18 +++ b/drivers/mfd/Makefile
19 @@ -256,3 +256,4 @@ obj-$(CONFIG_MFD_ROHM_BD70528) += rohm-b
20 obj-$(CONFIG_MFD_ROHM_BD718XX) += rohm-bd718x7.o
21 obj-$(CONFIG_MFD_STMFX) += stmfx.o
22
23 +obj-$(CONFIG_MFD_RB4XX_CPLD) += rb4xx-cpld.o
24 --- a/drivers/gpio/Kconfig
25 +++ b/drivers/gpio/Kconfig
26 @@ -1406,6 +1406,12 @@ config GPIO_SODAVILLE
27 help
28 Say Y here to support Intel Sodaville GPIO.
29
30 +config GPIO_RB4XX
31 + tristate "GPIO expander for Mikrotik RB4xx series boards"
32 + depends on MFD_RB4XX_CPLD
33 + help
34 + GPIO driver for Mikrotik Routerboard RB4xx series.
35 +
36 endmenu
37
38 menu "SPI GPIO expanders"
39 --- a/drivers/gpio/Makefile
40 +++ b/drivers/gpio/Makefile
41 @@ -113,6 +113,7 @@ obj-$(CONFIG_GPIO_PL061) += gpio-pl061.
42 obj-$(CONFIG_GPIO_PMIC_EIC_SPRD) += gpio-pmic-eic-sprd.o
43 obj-$(CONFIG_GPIO_PXA) += gpio-pxa.o
44 obj-$(CONFIG_GPIO_RASPBERRYPI_EXP) += gpio-raspberrypi-exp.o
45 +obj-$(CONFIG_GPIO_RB4XX) += gpio-rb4xx.o
46 obj-$(CONFIG_GPIO_RC5T583) += gpio-rc5t583.o
47 obj-$(CONFIG_GPIO_RCAR) += gpio-rcar.o
48 obj-$(CONFIG_GPIO_RDC321X) += gpio-rdc321x.o
49 --- a/drivers/mtd/nand/raw/Kconfig
50 +++ b/drivers/mtd/nand/raw/Kconfig
51 @@ -552,4 +552,11 @@ config MTD_NAND_AR934X
52 Enables support for NAND controller on Qualcomm Atheros SoCs.
53 This controller is found on AR934x and QCA955x SoCs.
54
55 +config MTD_NAND_RB4XX
56 + tristate "Support for NAND driver for Mikrotik RB4xx series boards"
57 + depends on MFD_RB4XX_CPLD
58 + help
59 + Enables support for the NAND flash chip on Mikrotik Routerboard
60 + RB4xx series.
61 +
62 endif # MTD_RAW_NAND
63 --- a/drivers/mtd/nand/raw/Makefile
64 +++ b/drivers/mtd/nand/raw/Makefile
65 @@ -58,6 +58,7 @@ obj-$(CONFIG_MTD_NAND_TEGRA) += tegra_n
66 obj-$(CONFIG_MTD_NAND_STM32_FMC2) += stm32_fmc2_nand.o
67 obj-$(CONFIG_MTD_NAND_MESON) += meson_nand.o
68 obj-$(CONFIG_MTD_NAND_AR934X) += ar934x_nand.o
69 +obj-$(CONFIG_MTD_NAND_RB4XX) += nand_rb4xx.o
70
71 nand-objs := nand_base.o nand_legacy.o nand_bbt.o nand_timings.o nand_ids.o
72 nand-objs += nand_onfi.o