Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7529df46 authored by Peter Pan's avatar Peter Pan Committed by Miquel Raynal
Browse files

mtd: nand: Add core infrastructure to support SPI NANDs



Add a SPI NAND framework based on the generic NAND framework and the
spi-mem infrastructure.

In its current state, this framework supports the following features:

- single/dual/quad IO modes
- on-die ECC

Signed-off-by: default avatarPeter Pan <peterpandong@micron.com>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent 0cf5c7db
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4,3 +4,4 @@ config MTD_NAND_CORE
source "drivers/mtd/nand/onenand/Kconfig"

source "drivers/mtd/nand/raw/Kconfig"
source "drivers/mtd/nand/spi/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -5,3 +5,4 @@ obj-$(CONFIG_MTD_NAND_CORE) += nandcore.o

obj-y	+= onenand/
obj-y	+= raw/
obj-y	+= spi/
+7 −0
Original line number Diff line number Diff line
menuconfig MTD_SPI_NAND
	tristate "SPI NAND device Support"
	select MTD_NAND_CORE
	depends on SPI_MASTER
	select SPI_MEM
	help
	  This is the framework for the SPI NAND device drivers.
+3 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
spinand-objs := core.o
obj-$(CONFIG_MTD_SPI_NAND) += spinand.o
+1136 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading