]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: spi-nor-ids: Extend w25q16cl entry with locking support
authorMarek Vasut <marex@denx.de>
Fri, 6 Sep 2024 21:10:42 +0000 (23:10 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 10 Oct 2024 14:11:27 +0000 (08:11 -0600)
The w25q16cl does support locking the same way w25q16dw does,
fill in the missing flags.

Signed-off-by: Marek Vasut <marex@denx.de>
drivers/mtd/spi/spi-nor-ids.c

index 5582a978ab55dda9393d3160a4ddd0b43ad9161a..30cff8afdbd9beaefb0e0c20f060e84a96f9d756 100644 (file)
@@ -536,7 +536,11 @@ const struct flash_info spi_nor_ids[] = {
        },
        { INFO("w25q80", 0xef5014, 0, 64 * 1024,  16, SECT_4K) },
        { INFO("w25q80bl", 0xef4014, 0, 64 * 1024,  16, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
-       { INFO("w25q16cl", 0xef4015, 0, 64 * 1024,  32, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+       {
+               INFO("w25q16cl", 0xef4015, 0, 64 * 1024,  32,
+                       SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
+                       SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
+       },
        { INFO("w25q32bv", 0xef4016, 0, 64 * 1024,  64, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
        { INFO("w25q64cv", 0xef4017, 0, 64 * 1024,  128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
        { INFO("w25q128", 0xef4018, 0, 64 * 1024, 256,