mtd: rawnand: nuvoton: add new driver for the Nuvoton MA35 SoC

Nuvoton MA35 SoCs NAND Flash Interface Controller
supports 2kiB, 4kiB and 8kiB page size, and up to
8-bit, 12-bit, and 24-bit hardware ECC calculation
circuit to protect data.

Signed-off-by: Hui-Ping Chen <hpchen0nvt@gmail.com>
[Miquel Raynal: Fixed compatible and driver name to match latest bindings]
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
Hui-Ping Chen
2024-12-06 03:13:18 +00:00
committed by Miquel Raynal
parent c20e060190
commit 5abb5d414d
3 changed files with 1038 additions and 0 deletions

View File

@@ -454,6 +454,14 @@ config MTD_NAND_TS72XX
help help
Enables support for NAND controller on ts72xx SBCs. Enables support for NAND controller on ts72xx SBCs.
config MTD_NAND_NUVOTON_MA35
tristate "Nuvoton MA35 SoC NAND controller"
depends on ARCH_MA35 || COMPILE_TEST
depends on OF
help
Enables support for the NAND controller found on
the Nuvoton MA35 series SoCs.
comment "Misc" comment "Misc"
config MTD_SM_COMMON config MTD_SM_COMMON

View File

@@ -58,6 +58,7 @@ obj-$(CONFIG_MTD_NAND_INTEL_LGM) += intel-nand-controller.o
obj-$(CONFIG_MTD_NAND_ROCKCHIP) += rockchip-nand-controller.o obj-$(CONFIG_MTD_NAND_ROCKCHIP) += rockchip-nand-controller.o
obj-$(CONFIG_MTD_NAND_PL35X) += pl35x-nand-controller.o obj-$(CONFIG_MTD_NAND_PL35X) += pl35x-nand-controller.o
obj-$(CONFIG_MTD_NAND_RENESAS) += renesas-nand-controller.o obj-$(CONFIG_MTD_NAND_RENESAS) += renesas-nand-controller.o
obj-$(CONFIG_MTD_NAND_NUVOTON_MA35) += nuvoton-ma35d1-nand-controller.o
nand-objs := nand_base.o nand_legacy.o nand_bbt.o nand_timings.o nand_ids.o nand-objs := nand_base.o nand_legacy.o nand_bbt.o nand_timings.o nand_ids.o
nand-objs += nand_onfi.o nand-objs += nand_onfi.o

File diff suppressed because it is too large Load Diff