diff options
author | Weijie Gao <hackpascal@gmail.com> | 2021-05-25 21:25:14 +0800 |
---|---|---|
committer | Chuanhong Guo <gch981213@gmail.com> | 2021-08-27 10:26:24 +0800 |
commit | 050621aa017273086d46ccf22dfb6942a367e049 (patch) | |
tree | fdd449776000b539c102a253c531bfba580fa7fa /target/linux/mediatek/patches-5.10 | |
parent | 7119fd32d397567931e63dbbf72014e95624018f (diff) | |
download | upstream-050621aa017273086d46ccf22dfb6942a367e049.tar.gz upstream-050621aa017273086d46ccf22dfb6942a367e049.tar.bz2 upstream-050621aa017273086d46ccf22dfb6942a367e049.zip |
mediatek: add a new spi-nand driver for kernel 5.10
This patch adds a new spi-nand driver which implements the SNFI of mt7622
and mt7629.
Unlike the existing snfi driver which makes use of the spi-mem framework
and the spi-nand framework with modified ecc support, this driver is
implemented directly on the mtd framework with other components untouched,
and provides better performance, and behaves exactly the same as the nand
framework.
Signed-off-by: Weijie Gao <hackpascal@gmail.com>
Diffstat (limited to 'target/linux/mediatek/patches-5.10')
-rw-r--r-- | target/linux/mediatek/patches-5.10/360-mtd-add-mtk-snand-driver.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/mediatek/patches-5.10/360-mtd-add-mtk-snand-driver.patch b/target/linux/mediatek/patches-5.10/360-mtd-add-mtk-snand-driver.patch new file mode 100644 index 0000000000..ebba6ffaad --- /dev/null +++ b/target/linux/mediatek/patches-5.10/360-mtd-add-mtk-snand-driver.patch @@ -0,0 +1,21 @@ +--- a/drivers/mtd/Kconfig ++++ b/drivers/mtd/Kconfig +@@ -238,6 +238,8 @@ source "drivers/mtd/ubi/Kconfig" + + source "drivers/mtd/hyperbus/Kconfig" + ++source "drivers/mtd/mtk-snand/Kconfig" ++ + source "drivers/mtd/composite/Kconfig" + + endif # MTD +--- a/drivers/mtd/Makefile ++++ b/drivers/mtd/Makefile +@@ -34,5 +34,7 @@ obj-$(CONFIG_MTD_SPI_NOR) += spi-nor/ + obj-$(CONFIG_MTD_UBI) += ubi/ + obj-$(CONFIG_MTD_HYPERBUS) += hyperbus/ + ++obj-$(CONFIG_MTK_SPI_NAND) += mtk-snand/ ++ + # Composite drivers must be loaded last + obj-y += composite/ |