diff mbox series

[1/2] mtd: spi-nor: gigadevice: Add support for gd25lb256e and gd25d{2,4}0c

Message ID 20230717153536.25700-2-quic_sridsn@quicinc.com
State Changes Requested
Delegated to: Ambarus Tudor
Headers show
Series Add support for gigadevice and macronix SPI-NOR | expand

Commit Message

Sridharan S N July 17, 2023, 3:35 p.m. UTC
Add support for:
	gd25lb256e
	gd25d{2,4}0c

All these chips supports uniform 4K-byte erase.

Signed-off-by: Sridharan S N <quic_sridsn@quicinc.com>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
---
 drivers/mtd/spi-nor/gigadevice.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/drivers/mtd/spi-nor/gigadevice.c b/drivers/mtd/spi-nor/gigadevice.c
index d57ddaf1525b..aca3b2362bfd 100644
--- a/drivers/mtd/spi-nor/gigadevice.c
+++ b/drivers/mtd/spi-nor/gigadevice.c
@@ -67,6 +67,12 @@  static const struct flash_info gigadevice_nor_parts[] = {
 		FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6)
 		FIXUP_FLAGS(SPI_NOR_4B_OPCODES)
 		.fixups = &gd25q256_fixups },
+	{ "gd25lb256e", INFO(0xc86719, 0, 64 * 1024, 512)
+		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_QUAD_READ) },
+	{ "gd25d20c", INFO(0xc84012, 0, 64 * 1024, 4)
+		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ) },
+	{ "gd25d40c", INFO(0xc84013, 0, 64 * 1024, 8)
+		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ) },
 };
 
 const struct spi_nor_manufacturer spi_nor_gigadevice = {