[v3 2/2] mtd: spi-nor-ids: add xtxtech part#

bruce_suen at 163.com bruce_suen at 163.com
Mon Jun 19 16:53:34 CEST 2023


add following XTX part numbers to the list:

xt25f08: 3V QSPI, 8Mbit
xt25f16: 3V QSPI, 16Mbit
xt25f32: 3V QSPI, 32Mbit
xt25f64: 3V QSPI, 64Mbit
xt25f128: 3V QSPI, 128Mbit
xt25f256: 3V QSPI, 256Mbit
xt25q08: 1.8V QSPI, 8Mbit
xt25q16: 1.8V QSPI, 16Mbit
xt25q32: 1.8V QSPI, 32Mbit
xt25q64: 1.8V QSPI, 64Mbit
xt25q128: 1.8V QSPI, 128Mbit
xt25q256: 1.8V QSPI, 256Mbit
xt25q512: 1.8V QSPI, 512Mbit
xt25q01g: 1.8V QSPI, 1Gbit
xt25w512: wide voltage, QSPI, 512Mbit
xt25w01g: wide voltage, QSPI, 1Gbit

remove xt25f128b and add xt25f128,because xt25f128b andxt25f128f
share same jdec id,we use xt25f128 instead.

Signed-off-by: Bruce Suen <bruce_suen at 163.com>
---
drivers/mtd/spi/spi-nor-ids.c | 36 ++++++++++++++++++++++++++++++++++-
1 file changed, 35 insertions(+), 1 deletion(-)

diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c
index a00e4e50a4..9a079c851d 100644
--- a/drivers/mtd/spi/spi-nor-ids.c
+++ b/drivers/mtd/spi/spi-nor-ids.c
@@ -529,7 +529,41 @@ const struct flash_info spi_nor_ids[] = {
#endif
#ifdef CONFIG_SPI_FLASH_XTX
     /* XTX Technology Limited */
-     { INFO("xt25f128b", 0x0b4018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+     /* adding these 3V QSPI flash parts */
+     { INFO("xt25f08", 0x0b4014, 0, 64 * 1024, 16,
+          SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+     { INFO("xt25f16", 0x0b4015, 0, 64 * 1024, 32,
+          SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+     { INFO("xt25f32", 0x0b4016, 0, 64 * 1024, 64,
+          SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+     { INFO("xt25f64", 0x0b4017, 0, 64 * 1024, 128,
+          SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+     { INFO("xt25f128", 0x0b4018, 0, 64 * 1024, 256,
+          SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+     { INFO("xt25f256", 0x0b4019, 0, 64 * 1024, 512,
+          SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
+     /* adding these 1.8V QSPI flash parts */
+     { INFO("xt25q08", 0x0b6014, 0, 64 * 1024, 16,
+          SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+     { INFO("xt25q16", 0x0b6015, 0, 64 * 1024, 32,
+          SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+     { INFO("xt25q32", 0x0b6016, 0, 64 * 1024, 64,
+          SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+     { INFO("xt25q64", 0x0b6017, 0, 64 * 1024, 128,
+          SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+     { INFO("xt25q128", 0x0b6018, 0, 64 * 1024, 256,
+          SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+     { INFO("xt25q256", 0x0b6019, 0, 64 * 1024, 512,
+          SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
+     { INFO("xt25q512", 0x0b601A, 0, 64 * 1024, 1024,
+          SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
+     { INFO("xt25q01g", 0x0b601B, 0, 64 * 1024, 2048,
+          SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
+     /* adding these wide voltage QSPI flash parts */
+     { INFO("xt25w512", 0x0b651A, 0, 64 * 1024, 1024,
+          SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
+     { INFO("xt25w01g", 0x0b651B, 0, 64 * 1024, 2048,
+          SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
#endif
     { },
};
--
2.25.1


More information about the U-Boot mailing list