mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-05-04 09:31:26 +02:00
Manually rebuild hack patches: - 200-tools_portability.patch - 204-module_strip.patch - 230-openwrt_lzma_options.patch - 251-kconfig.patch - 259-regmap_dynamic.patch - 301-01-mm-permit-to-declare-custom-execmem-alloc-free-funct.patch - 301-02-mips-replace-mlong-calls-with-mno-long-calls-if-poss.patch - 430-mtk-bmt-support.patch - 721-net-add-packet-mangeling.patch - 722-net-phy-aquantia-enable-AQR112-and-AQR412.patch - 725-net-phy-aquantia-add-PHY_IDs-for-AQR112-variants.patch - 750-net-pcs-mtk-lynxi-workaround-2500BaseX-no-an.patch - 800-GPIO-add-named-gpio-exports.patch - 902-debloat_proc.patch - 904-debloat_dma_buf.patch Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/21078 Signed-off-by: Robert Marko <robimarko@gmail.com>
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
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(+)
|
|
|
|
--- a/drivers/mtd/nand/Kconfig
|
|
+++ b/drivers/mtd/nand/Kconfig
|
|
@@ -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.
|
|
|
|
+config MTD_NAND_MTK_BMT
|
|
+ bool "Support MediaTek NAND Bad-block Management Table"
|
|
+ default n
|
|
+
|
|
config MTD_NAND_ECC_MXIC
|
|
bool "Macronix external hardware ECC engine"
|
|
depends on HAS_IOMEM
|
|
--- a/drivers/mtd/nand/Makefile
|
|
+++ b/drivers/mtd/nand/Makefile
|
|
@@ -3,6 +3,7 @@
|
|
nandcore-objs := core.o bbt.o
|
|
obj-$(CONFIG_MTD_NAND_CORE) += nandcore.o
|
|
obj-$(CONFIG_MTD_NAND_ECC_MEDIATEK) += ecc-mtk.o
|
|
+obj-$(CONFIG_MTD_NAND_MTK_BMT) += mtk_bmt.o mtk_bmt_v2.o mtk_bmt_bbt.o mtk_bmt_nmbm.o
|
|
obj-$(CONFIG_MTD_NAND_ECC_REALTEK) += ecc-realtek.o
|
|
obj-$(CONFIG_SPI_QPIC_SNAND) += qpic_common.o
|
|
obj-$(CONFIG_MTD_NAND_QCOM) += qpic_common.o
|