Skip to contentSkip to conversation

Add support for xtx flash

PATCH New Bruce Suen 1 participant 1 message Jun 1, 2023

Subsystems (2)
lore
Share & tools
lore

Bruce Suen

author
#0 lore raw

PATCH 1/1 Add support for xtx flash

Dear Maintainers,

This patch add support for XTX spi nor flash.
Dadasheet Link:
http://www.xtxtech.com/download/?AId=449
http://www.xtxtech.com/download/?AId=267
http://www.xtxtech.com/download/?AId=426
http://www.xtxtech.com/download/?AId=445
http://www.xtxtech.com/download/?AId=274

---
 drivers/mtd/spi-nor/Makefile |  1 +
 drivers/mtd/spi-nor/core.c   |  1 +
 drivers/mtd/spi-nor/core.h   |  1 +
 drivers/mtd/spi-nor/xtx.c    | 43 ++++++++++++++++++++++++++++++++++++
 4 files changed, 46 insertions(+)
 create mode 100644 drivers/mtd/spi-nor/xtx.c
drivers/mtd/spi-nor/Makefile +1 -0
index e347b435a038..8992c592a896 100644
@@ -17,6 +17,7 @@ spi-nor-objs			+= sst.o
 spi-nor-objs			+= winbond.o
 spi-nor-objs			+= xilinx.o
 spi-nor-objs			+= xmc.o
+spi-nor-objs			+= xtx.o
 spi-nor-$(CONFIG_DEBUG_FS)	+= debugfs.o
 obj-$(CONFIG_MTD_SPI_NOR)	+= spi-nor.o
 
drivers/mtd/spi-nor/core.c +1 -0
index 143ca3c9b477..0a26b7d1fe5d 100644
@@ -2014,6 +2014,7 @@ static const struct spi_nor_manufacturer *manufacturers[] = {
 	&spi_nor_winbond,
 	&spi_nor_xilinx,
 	&spi_nor_xmc,
+	&spi_nor_xtx,
 };
 
 static const struct flash_info spi_nor_generic_flash = {
drivers/mtd/spi-nor/core.h +1 -0
index fd61c4793a10..9f6c564be622 100644
@@ -644,6 +644,7 @@ extern const struct spi_nor_manufacturer spi_nor_sst;
 extern const struct spi_nor_manufacturer spi_nor_winbond;
 extern const struct spi_nor_manufacturer spi_nor_xilinx;
 extern const struct spi_nor_manufacturer spi_nor_xmc;
+extern const struct spi_nor_manufacturer spi_nor_xtx;
 
 extern const struct attribute_group *spi_nor_sysfs_groups[];
 
drivers/mtd/spi-nor/xtx.c new file +43 -0

43 lines not on this page · raw message

Signature · 6 lines
2.25.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/