Skip to content

Commit 7529df4

Browse files
Peter Panmiquelraynal
authored andcommitted
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: Peter Pan <peterpandong@micron.com> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent 0cf5c7d commit 7529df4

File tree

7 files changed

+1567
-1
lines changed

7 files changed

+1567
-1
lines changed

drivers/mtd/nand/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ config MTD_NAND_CORE
44
source "drivers/mtd/nand/onenand/Kconfig"
55

66
source "drivers/mtd/nand/raw/Kconfig"
7+
source "drivers/mtd/nand/spi/Kconfig"

drivers/mtd/nand/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ obj-$(CONFIG_MTD_NAND_CORE) += nandcore.o
55

66
obj-y += onenand/
77
obj-y += raw/
8+
obj-y += spi/

drivers/mtd/nand/spi/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
menuconfig MTD_SPI_NAND
2+
tristate "SPI NAND device Support"
3+
select MTD_NAND_CORE
4+
depends on SPI_MASTER
5+
select SPI_MEM
6+
help
7+
This is the framework for the SPI NAND device drivers.

drivers/mtd/nand/spi/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
spinand-objs := core.o
3+
obj-$(CONFIG_MTD_SPI_NAND) += spinand.o

0 commit comments

Comments
 (0)