Skip to content

Commit 8fae856

Browse files
Liang Yangmiquelraynal
authored andcommitted
mtd: rawnand: meson: add support for Amlogic NAND flash controller
Add initial support for the Amlogic NAND flash controller which is available on Meson SoCs. Signed-off-by: Liang Yang <liang.yang@amlogic.com> Signed-off-by: Yixun Lan <yixun.lan@amlogic.com> Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent 3059ba7 commit 8fae856

File tree

3 files changed

+1473
-0
lines changed

3 files changed

+1473
-0
lines changed

drivers/mtd/nand/raw/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,4 +550,12 @@ config MTD_NAND_STM32_FMC2
550550
The controller supports a maximum 8k page size and supports
551551
a maximum 8-bit correction error per sector of 512 bytes.
552552

553+
config MTD_NAND_MESON
554+
tristate "Support for NAND controller on Amlogic's Meson SoCs"
555+
depends on ARCH_MESON || COMPILE_TEST
556+
select MFD_SYSCON
557+
help
558+
Enables support for NAND controller on Amlogic's Meson SoCs.
559+
This controller is found on Meson SoCs.
560+
553561
endif # MTD_NAND

drivers/mtd/nand/raw/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ obj-$(CONFIG_MTD_NAND_QCOM) += qcom_nandc.o
5757
obj-$(CONFIG_MTD_NAND_MTK) += mtk_ecc.o mtk_nand.o
5858
obj-$(CONFIG_MTD_NAND_TEGRA) += tegra_nand.o
5959
obj-$(CONFIG_MTD_NAND_STM32_FMC2) += stm32_fmc2_nand.o
60+
obj-$(CONFIG_MTD_NAND_MESON) += meson_nand.o
6061

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

0 commit comments

Comments
 (0)