[PATCH 1/2] mtd: spi-nor: gigadevice: Add support for gd25lb256e and gd25d{2,4}0c
Sridharan S N
quic_sridsn at quicinc.com
Mon Jul 17 08:35:35 PDT 2023
Add support for:
gd25lb256e
gd25d{2,4}0c
All these chips supports uniform 4K-byte erase.
Signed-off-by: Sridharan S N <quic_sridsn at quicinc.com>
Signed-off-by: Md Sadre Alam <quic_mdalam at quicinc.com>
---
drivers/mtd/spi-nor/gigadevice.c | 6 ++++++
1 file changed, 6 insertions(+)
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 = {
--
2.17.1
More information about the linux-mtd
mailing list