4a852886bf3b8783fc215450aeca42f295869955
[openwrt/openwrt.git] / target / linux / ath79 / patches-5.15 / 939-mikrotik-rb91x.patch
1 --- a/drivers/gpio/Kconfig
2 +++ b/drivers/gpio/Kconfig
3 @@ -353,6 +353,13 @@ config GPIO_IXP4XX
4 IXP4xx series of chips.
5
6 If unsure, say N.
7 +
8 +config GPIO_LATCH
9 + tristate "MikroTik RouterBOARD GPIO latch support"
10 + depends on ATH79
11 + help
12 + GPIO driver for latch on some MikroTik RouterBOARDs.
13 +
14 config GPIO_LOGICVC
15 tristate "Xylon LogiCVC GPIO support"
16 depends on MFD_SYSCON && OF
17 @@ -529,6 +536,10 @@ config GPIO_ROCKCHIP
18 help
19 Say yes here to support GPIO on Rockchip SoCs.
20
21 +config GPIO_RB91X_KEY
22 + tristate "MikroTik RB91x board series reset key support"
23 + depends on ATH79
24 +
25 config GPIO_SAMA5D2_PIOBU
26 tristate "SAMA5D2 PIOBU GPIO support"
27 depends on MFD_SYSCON
28 --- a/drivers/gpio/Makefile
29 +++ b/drivers/gpio/Makefile
30 @@ -75,6 +75,7 @@ obj-$(CONFIG_GPIO_IT87) += gpio-it87.o
31 obj-$(CONFIG_GPIO_IXP4XX) += gpio-ixp4xx.o
32 obj-$(CONFIG_GPIO_JANZ_TTL) += gpio-janz-ttl.o
33 obj-$(CONFIG_GPIO_KEMPLD) += gpio-kempld.o
34 +obj-$(CONFIG_GPIO_LATCH) += gpio-latch.o
35 obj-$(CONFIG_GPIO_LOGICVC) += gpio-logicvc.o
36 obj-$(CONFIG_GPIO_LOONGSON1) += gpio-loongson1.o
37 obj-$(CONFIG_GPIO_LOONGSON) += gpio-loongson.o
38 @@ -123,6 +124,7 @@ obj-$(CONFIG_GPIO_PMIC_EIC_SPRD) += gpio
39 obj-$(CONFIG_GPIO_PXA) += gpio-pxa.o
40 obj-$(CONFIG_GPIO_RASPBERRYPI_EXP) += gpio-raspberrypi-exp.o
41 obj-$(CONFIG_GPIO_RB4XX) += gpio-rb4xx.o
42 +obj-$(CONFIG_GPIO_RB91X_KEY) += gpio-rb91x-key.o
43 obj-$(CONFIG_GPIO_RC5T583) += gpio-rc5t583.o
44 obj-$(CONFIG_GPIO_RCAR) += gpio-rcar.o
45 obj-$(CONFIG_GPIO_RDA) += gpio-rda.o
46 --- a/drivers/mtd/nand/raw/Kconfig
47 +++ b/drivers/mtd/nand/raw/Kconfig
48 @@ -570,4 +570,10 @@ config MTD_NAND_RB4XX
49 Enables support for the NAND flash chip on Mikrotik Routerboard
50 RB4xx series.
51
52 +config MTD_NAND_RB91X
53 + tristate "MikroTik RB91x NAND driver support"
54 + depends on ATH79 && MTD_RAW_NAND
55 + help
56 + Enables support for the NAND flash chip on MikroTik RB91x series.
57 +
58 endif # MTD_RAW_NAND
59 --- a/drivers/mtd/nand/raw/Makefile
60 +++ b/drivers/mtd/nand/raw/Makefile
61 @@ -60,6 +60,7 @@ obj-$(CONFIG_MTD_NAND_ROCKCHIP) += rock
62 obj-$(CONFIG_MTD_NAND_PL35X) += pl35x-nand-controller.o
63 obj-$(CONFIG_MTD_NAND_AR934X) += ar934x_nand.o
64 obj-$(CONFIG_MTD_NAND_RB4XX) += nand_rb4xx.o
65 +obj-$(CONFIG_MTD_NAND_RB91X) += rb91x_nand.o
66
67 nand-objs := nand_base.o nand_legacy.o nand_bbt.o nand_timings.o nand_ids.o
68 nand-objs += nand_onfi.o