diff options
author | Denis Kalashnikov <denis281089@gmail.com> | 2021-05-27 11:16:45 +0300 |
---|---|---|
committer | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2021-06-21 10:48:27 +0200 |
commit | 820e660cd7463aa6d5ed9d31baf0f3c35596ce57 (patch) | |
tree | 91115c53625ef0fff3e73cc4aef4556c5e6388a2 /target/linux/ath79/patches-5.4/939-mikrotik-rb91x.patch | |
parent | 7b8931678c36c8d8c333b446258a653b1358bf70 (diff) | |
download | upstream-820e660cd7463aa6d5ed9d31baf0f3c35596ce57.tar.gz upstream-820e660cd7463aa6d5ed9d31baf0f3c35596ce57.tar.bz2 upstream-820e660cd7463aa6d5ed9d31baf0f3c35596ce57.zip |
ath79: add NAND driver for MikroTik RB91xG series
Main part is copied from ar71xx original driver rb91x_nand
written by Gabor Juhos <juhosg@openwrt.org>.
What is done:
* Support of kernel 5.4 and 5.10,
* DTS support,
* New gpio API (gpiod_*) support.
Reviewed-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: Denis Kalashnikov <denis281089@gmail.com>
Diffstat (limited to 'target/linux/ath79/patches-5.4/939-mikrotik-rb91x.patch')
-rw-r--r-- | target/linux/ath79/patches-5.4/939-mikrotik-rb91x.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/ath79/patches-5.4/939-mikrotik-rb91x.patch b/target/linux/ath79/patches-5.4/939-mikrotik-rb91x.patch index baeaab4611..6d84443945 100644 --- a/target/linux/ath79/patches-5.4/939-mikrotik-rb91x.patch +++ b/target/linux/ath79/patches-5.4/939-mikrotik-rb91x.patch @@ -1,3 +1,24 @@ +--- a/drivers/mtd/nand/raw/Kconfig ++++ b/drivers/mtd/nand/raw/Kconfig +@@ -559,4 +559,8 @@ config MTD_NAND_RB4XX + Enables support for the NAND flash chip on Mikrotik Routerboard + RB4xx series. + ++config MTD_NAND_RB91X ++ tristate "MikroTik RB91x NAND driver support" ++ depends on ATH79 && MTD_RAW_NAND ++ + endif # MTD_RAW_NAND +--- a/drivers/mtd/nand/raw/Makefile ++++ b/drivers/mtd/nand/raw/Makefile +@@ -59,6 +59,7 @@ obj-$(CONFIG_MTD_NAND_STM32_FMC2) += stm + obj-$(CONFIG_MTD_NAND_MESON) += meson_nand.o + obj-$(CONFIG_MTD_NAND_AR934X) += ar934x_nand.o + obj-$(CONFIG_MTD_NAND_RB4XX) += nand_rb4xx.o ++obj-$(CONFIG_MTD_NAND_RB91X) += rb91x_nand.o + + nand-objs := nand_base.o nand_legacy.o nand_bbt.o nand_timings.o nand_ids.o + nand-objs += nand_onfi.o --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -130,6 +130,10 @@ config GPIO_ATH79 |