]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: spi-nor-ids: Deduplicate w25q16dw entry
authorMarek Vasut <marex@denx.de>
Fri, 6 Sep 2024 21:09:16 +0000 (23:09 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 10 Oct 2024 14:11:11 +0000 (08:11 -0600)
The w25q16dw entry exists twice in spi_nor_ids, remove the less
complete variant of the entry and keep only one copy of it.

Fixes: baef13ec9d59 ("mtd: spi-nor-ids: Add support for flashes tested by xilinx")
Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
drivers/mtd/spi/spi-nor-ids.c

index 88709a52b3ac36393b5002011f85a5e36c3e5d96..d1389e681d630ed3606772ffa56381785b788bd0 100644 (file)
@@ -430,11 +430,6 @@ const struct flash_info spi_nor_ids[] = {
        { INFO("w25x05", 0xef3010, 0, 64 * 1024,  1,  SECT_4K) },
        { INFO("w25x40", 0xef3013, 0, 64 * 1024,  8,  SECT_4K) },
        { INFO("w25x16", 0xef3015, 0, 64 * 1024,  32, SECT_4K) },
-       {
-               INFO("w25q16dw", 0xef6015, 0, 64 * 1024,  32,
-                       SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
-                       SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
-       },
        { INFO("w25x32", 0xef3016, 0, 64 * 1024,  64, SECT_4K) },
        { INFO("w25q20cl", 0xef4012, 0, 64 * 1024,  4, SECT_4K) },
        { INFO("w25q20bw", 0xef5012, 0, 64 * 1024,  4, SECT_4K) },
@@ -442,7 +437,8 @@ const struct flash_info spi_nor_ids[] = {
        { INFO("w25q32", 0xef4016, 0, 64 * 1024,  64, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
        {
                INFO("w25q16dw", 0xef6015, 0, 64 * 1024,  32,
-                       SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ)
+                       SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
+                       SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
        },
        {
                INFO("w25q32dw", 0xef6016, 0, 64 * 1024,  64,