mediatek: add a new spi-nand driver for kernel 5.10
authorWeijie Gao <hackpascal@gmail.com>
Tue, 25 May 2021 13:25:14 +0000 (21:25 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Fri, 27 Aug 2021 02:26:24 +0000 (10:26 +0800)
commit050621aa017273086d46ccf22dfb6942a367e049
treefdd449776000b539c102a253c531bfba580fa7fa
parent7119fd32d397567931e63dbbf72014e95624018f
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>
target/linux/mediatek/files-5.10/drivers/mtd/mtk-snand/Kconfig [new file with mode: 0644]
target/linux/mediatek/files-5.10/drivers/mtd/mtk-snand/Makefile [new file with mode: 0644]
target/linux/mediatek/files-5.10/drivers/mtd/mtk-snand/mtk-snand-def.h [new file with mode: 0644]
target/linux/mediatek/files-5.10/drivers/mtd/mtk-snand/mtk-snand-ecc.c [new file with mode: 0644]
target/linux/mediatek/files-5.10/drivers/mtd/mtk-snand/mtk-snand-ids.c [new file with mode: 0644]
target/linux/mediatek/files-5.10/drivers/mtd/mtk-snand/mtk-snand-mtd.c [new file with mode: 0644]
target/linux/mediatek/files-5.10/drivers/mtd/mtk-snand/mtk-snand-os.c [new file with mode: 0644]
target/linux/mediatek/files-5.10/drivers/mtd/mtk-snand/mtk-snand-os.h [new file with mode: 0644]
target/linux/mediatek/files-5.10/drivers/mtd/mtk-snand/mtk-snand.c [new file with mode: 0644]
target/linux/mediatek/files-5.10/drivers/mtd/mtk-snand/mtk-snand.h [new file with mode: 0644]
target/linux/mediatek/patches-5.10/360-mtd-add-mtk-snand-driver.patch [new file with mode: 0644]