Skip to content

Commit 7304d19

Browse files
Md Sadre Alambroonie
authored andcommitted
spi: spi-qpic: add driver for QCOM SPI NAND flash Interface
This driver implements support for the SPI-NAND mode of QCOM NAND Flash Interface as a SPI-MEM controller with pipelined ECC capability. Co-developed-by: Sricharan Ramabadhran <[email protected]> Signed-off-by: Sricharan Ramabadhran <[email protected]> Co-developed-by: Varadarajan Narayanan <[email protected]> Signed-off-by: Varadarajan Narayanan <[email protected]> Signed-off-by: Md Sadre Alam <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent fd6bc2b commit 7304d19

File tree

5 files changed

+1652
-0
lines changed

5 files changed

+1652
-0
lines changed

drivers/mtd/nand/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
nandcore-objs := core.o bbt.o
44
obj-$(CONFIG_MTD_NAND_CORE) += nandcore.o
55
obj-$(CONFIG_MTD_NAND_ECC_MEDIATEK) += ecc-mtk.o
6+
ifeq ($(CONFIG_SPI_QPIC_SNAND),y)
7+
obj-$(CONFIG_SPI_QPIC_SNAND) += qpic_common.o
8+
else
69
obj-$(CONFIG_MTD_NAND_QCOM) += qpic_common.o
10+
endif
711
obj-y += onenand/
812
obj-y += raw/
913
obj-y += spi/

drivers/spi/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,15 @@ config SPI_QCOM_QSPI
936936
help
937937
QSPI(Quad SPI) driver for Qualcomm QSPI controller.
938938

939+
config SPI_QPIC_SNAND
940+
bool "QPIC SNAND controller"
941+
depends on ARCH_QCOM || COMPILE_TEST
942+
select MTD
943+
help
944+
QPIC_SNAND (QPIC SPI NAND) driver for Qualcomm QPIC controller.
945+
QPIC controller supports both parallel nand and serial nand.
946+
This config will enable serial nand driver for QPIC controller.
947+
939948
config SPI_QUP
940949
tristate "Qualcomm SPI controller with QUP interface"
941950
depends on ARCH_QCOM || COMPILE_TEST

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ obj-$(CONFIG_SPI_PXA2XX) += spi-pxa2xx-platform.o
117117
obj-$(CONFIG_SPI_PXA2XX_PCI) += spi-pxa2xx-pci.o
118118
obj-$(CONFIG_SPI_QCOM_GENI) += spi-geni-qcom.o
119119
obj-$(CONFIG_SPI_QCOM_QSPI) += spi-qcom-qspi.o
120+
obj-$(CONFIG_SPI_QPIC_SNAND) += spi-qpic-snand.o
120121
obj-$(CONFIG_SPI_QUP) += spi-qup.o
121122
obj-$(CONFIG_SPI_ROCKCHIP) += spi-rockchip.o
122123
obj-$(CONFIG_SPI_ROCKCHIP_SFC) += spi-rockchip-sfc.o

0 commit comments

Comments
 (0)