Skip to contentSkip to conversation

mtd: spi-nor-ids: Extend w25q16cl entry with locking support

PATCH In review Marek Vasut 2 participants 2 messages Sep 6, 2024 – Oct 10, 2024 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: spi-nor-ids: Extend w25q16cl entry with locking support

The w25q16cl does support locking the same way w25q16dw does, fill in the missing flags.

---
Cc: Andre Przywara <[email protected]>
Cc: Ashok Reddy Soma <[email protected]>
Cc: Dhruva Gole <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Jim Liu <[email protected]>
Cc: Jonas Karlman <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Neal Frager <[email protected]>
Cc: Prasad Kummari <[email protected]>
Cc: Teik Heng Chong <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Vignesh R <[email protected]>
Cc: [email protected]

---
 drivers/mtd/spi/spi-nor-ids.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/mtd/spi/spi-nor-ids.c +5 -1
index 5582a978ab5..30cff8afdbd 100644
@@ -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,
Signature · 1 line
2.45.2
#1 lore raw
Quoted 4 lines · Marek Vasut

The w25q16cl does support locking the same way w25q16dw does, fill in the missing flags.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom