mtd: spinand: Add support for XTX SPINAND
Subsystems (2)
PATCH v3 1/1 mtd: spinand: Add support for XTX SPINAND
Add support for XTX XT26G0xA and XT26xxxD.The driver is ported from linux-6.7.1.This driver is tested on Banana BPI-R3 with XT26G01A and XT26G12D.
Signed-off-by Bruce Suen <[email protected]>
---V2->V3:
- change commit message: add test setup information
- remove patch warnings
--- drivers/mtd/nand/spi/Makefile | 2 +- drivers/mtd/nand/spi/core.c | 1 + drivers/mtd/nand/spi/xtx.c | 266 ++++++++++++++++++++++++++++++++++ include/linux/mtd/spinand.h | 1 + 4 files changed, 269 insertions(+), 1 deletion(-) create mode 100644 drivers/mtd/nand/spi/xtx.c
drivers/mtd/nand/spi/Makefile +1 -1
@@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 spinand-objs := core.o esmt.o gigadevice.o macronix.o micron.o paragon.o -spinand-objs += toshiba.o winbond.o +spinand-objs += toshiba.o winbond.o xtx.o obj-$(CONFIG_MTD_SPI_NAND) += spinand.o
drivers/mtd/nand/spi/core.c +1 -0
@@ -829,6 +829,7 @@ static const struct spinand_manufacturer *spinand_manufacturers[] = { &toshiba_spinand_manufacturer, &winbond_spinand_manufacturer, &esmt_c8_spinand_manufacturer, + &xtx_spinand_manufacturer, }; static int spinand_manufacturer_match(struct spinand_device *spinand,
drivers/mtd/nand/spi/xtx.c new file +266 -0
266 lines not on this page · raw message
include/linux/mtd/spinand.h +1 -0
@@ -251,6 +251,7 @@ extern const struct spinand_manufacturer paragon_spinand_manufacturer;extern const struct spinand_manufacturer toshiba_spinand_manufacturer;extern const struct spinand_manufacturer winbond_spinand_manufacturer;extern const struct spinand_manufacturer esmt_c8_spinand_manufacturer; +extern const struct spinand_manufacturer xtx_spinand_manufacturer;/** * struct spinand_op_variants - SPI NAND operation variants
Signature · 1 line
2.34.1
Quoted 7 lines · Bruce Suen
[Sie erhalten nicht häufig E-Mails von [email protected]. Weitere Informationen, warum dies wichtig ist, finden Sie unter https://aka.ms/LearnAboutSenderIdentification ]
Add support for XTX XT26G0xA and XT26xxxD.The driver is ported from linux-6.7.1.This driver is tested on Banana BPI-R3 with XT26G01A and XT26G12D.
Signed-off-by Bruce Suen <[email protected]>
The commit message still has some minor flaws like missing spaces after the periods, but anyway:
Reviewed-by Frieder Schrempf <[email protected]>