[PATCH v2] mtd: spi-nor: gigadevice: Add support for gd25lr256e
Mika Westerberg
mika.westerberg at linux.intel.com
Sat Oct 22 23:58:38 PDT 2022
Add support for this 32MB serial flash.
Signed-off-by: Mika Westerberg <mika.westerberg at linux.intel.com>
---
The previous version of the patch can be found here:
https://lore.kernel.org/linux-mtd/20220922135646.49906-1-mika.westerberg@linux.intel.com/
This version uses SFDP instead as the chip supports it just fine.
drivers/mtd/spi-nor/gigadevice.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/mtd/spi-nor/gigadevice.c b/drivers/mtd/spi-nor/gigadevice.c
index 119b38e6fc2a..29ae4048bb0f 100644
--- a/drivers/mtd/spi-nor/gigadevice.c
+++ b/drivers/mtd/spi-nor/gigadevice.c
@@ -57,6 +57,9 @@ 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 },
+ { "gd25lr256e", INFO(0xc86719, 0, 64 * 1024, 512)
+ PARSE_SFDP
+ FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) },
};
const struct spi_nor_manufacturer spi_nor_gigadevice = {
--
2.35.1
More information about the linux-mtd
mailing list