2022-07-14 06:55:58 +00:00
|
|
|
From ac84397efb3b3868c71c10ad7521161773228a17 Mon Sep 17 00:00:00 2001
|
|
|
|
From: OpenWrt community <openwrt-devel@lists.openwrt.org>
|
|
|
|
Date: Wed, 13 Jul 2022 13:41:44 +0200
|
|
|
|
Subject: [PATCH] mtd/nand: add MediaTek NAND bad block managment table
|
|
|
|
|
|
|
|
---
|
|
|
|
drivers/mtd/nand/Kconfig | 4 ++++
|
|
|
|
drivers/mtd/nand/Makefile | 1 +
|
|
|
|
2 files changed, 5 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
|
|
|
|
index b40455234cbd..72ef18c59cee 100644
|
2021-11-04 20:52:43 +00:00
|
|
|
--- a/drivers/mtd/nand/Kconfig
|
|
|
|
+++ b/drivers/mtd/nand/Kconfig
|
2022-03-21 14:21:45 +00:00
|
|
|
@@ -46,6 +46,10 @@ config MTD_NAND_ECC_SW_BCH
|
|
|
|
ECC codes. They are used with NAND devices requiring more than 1 bit
|
|
|
|
of error correction.
|
2021-11-04 20:52:43 +00:00
|
|
|
|
|
|
|
+config MTD_NAND_MTK_BMT
|
|
|
|
+ bool "Support MediaTek NAND Bad-block Management Table"
|
|
|
|
+ default n
|
|
|
|
+
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
endmenu
|
2022-07-14 06:55:58 +00:00
|
|
|
diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile
|
|
|
|
index 1c0b46960eb1..b9d97626bb47 100644
|
2021-11-04 20:52:43 +00:00
|
|
|
--- 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
|
|
|
|
+obj-$(CONFIG_MTD_NAND_MTK_BMT) += mtk_bmt.o mtk_bmt_v2.o mtk_bmt_bbt.o mtk_bmt_nmbm.o
|
|
|
|
|
|
|
|
obj-y += onenand/
|
|
|
|
obj-y += raw/
|
2022-07-14 06:55:58 +00:00
|
|
|
--
|
|
|
|
|