immortalwrt-mt798x/target/linux/mediatek/patches-5.4/400-mtd-add-mtk-snand-driver.patch
2022-11-16 22:08:49 +08:00

22 lines
490 B
Diff

--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -230,6 +230,8 @@ source "drivers/mtd/hyperbus/Kconfig"
source "drivers/mtd/nmbm/Kconfig"
+source "drivers/mtd/mtk-snand/Kconfig"
+
source "drivers/mtd/composite/Kconfig"
endif # MTD
--- a/drivers/mtd/Makefile
+++ b/drivers/mtd/Makefile
@@ -35,5 +35,7 @@ obj-$(CONFIG_MTD_HYPERBUS) += hyperbus/
obj-y += nmbm/
+obj-$(CONFIG_MTK_SPI_NAND) += mtk-snand/
+
# Composite drivers must be loaded last
obj-y += composite/