Skip to content

Commit 5abb5d4

Browse files
Hui-Ping Chenmiquelraynal
authored andcommitted
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 <[email protected]> [Miquel Raynal: Fixed compatible and driver name to match latest bindings] Signed-off-by: Miquel Raynal <[email protected]>
1 parent c20e060 commit 5abb5d4

File tree

3 files changed

+1038
-0
lines changed

3 files changed

+1038
-0
lines changed

drivers/mtd/nand/raw/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,14 @@ config MTD_NAND_TS72XX
454454
help
455455
Enables support for NAND controller on ts72xx SBCs.
456456

457+
config MTD_NAND_NUVOTON_MA35
458+
tristate "Nuvoton MA35 SoC NAND controller"
459+
depends on ARCH_MA35 || COMPILE_TEST
460+
depends on OF
461+
help
462+
Enables support for the NAND controller found on
463+
the Nuvoton MA35 series SoCs.
464+
457465
comment "Misc"
458466

459467
config MTD_SM_COMMON

drivers/mtd/nand/raw/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ obj-$(CONFIG_MTD_NAND_INTEL_LGM) += intel-nand-controller.o
5858
obj-$(CONFIG_MTD_NAND_ROCKCHIP) += rockchip-nand-controller.o
5959
obj-$(CONFIG_MTD_NAND_PL35X) += pl35x-nand-controller.o
6060
obj-$(CONFIG_MTD_NAND_RENESAS) += renesas-nand-controller.o
61+
obj-$(CONFIG_MTD_NAND_NUVOTON_MA35) += nuvoton-ma35d1-nand-controller.o
6162

6263
nand-objs := nand_base.o nand_legacy.o nand_bbt.o nand_timings.o nand_ids.o
6364
nand-objs += nand_onfi.o

0 commit comments

Comments
 (0)