2021-12-12 06:25:41 +00:00
|
|
|
--- a/drivers/mtd/nand/Kconfig
|
|
|
|
+++ b/drivers/mtd/nand/Kconfig
|
|
|
|
@@ -15,6 +15,10 @@ config MTD_NAND_ECC
|
|
|
|
bool
|
|
|
|
depends on MTD_NAND_CORE
|
|
|
|
|
|
|
|
+config MTD_NAND_MTK_BMT
|
|
|
|
+ bool "Support MediaTek NAND Bad-block Management Table"
|
|
|
|
+ default n
|
|
|
|
+
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
--- a/drivers/mtd/nand/Makefile
|
|
|
|
+++ b/drivers/mtd/nand/Makefile
|
|
|
|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
|
|
nandcore-objs := core.o bbt.o
|
|
|
|
obj-$(CONFIG_MTD_NAND_CORE) += nandcore.o
|
2022-03-10 14:31:25 +00:00
|
|
|
+obj-$(CONFIG_MTD_NAND_MTK_BMT) += mtk_bmt.o mtk_bmt_v2.o mtk_bmt_bbt.o mtk_bmt_nmbm.o
|
2021-12-12 06:25:41 +00:00
|
|
|
|
|
|
|
obj-y += onenand/
|
|
|
|
obj-y += raw/
|