]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: spi-nor-ids: add xtxtech part#
authorBruce Suen <bruce_suen@163.com>
Thu, 13 Jul 2023 08:42:41 +0000 (14:12 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 13 Jul 2023 08:43:40 +0000 (14:13 +0530)
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@163.com>
[jagan: re-edited the entire patch]
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/mtd/spi/spi-nor-ids.c

index a00e4e50a4b712dda13765271508de24564df236..ecb9ded5956cef4229c8b97917811641912b9c0b 100644 (file)
@@ -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
        { },
 };