build/patch/kernel/archive/sunxi-6.5/patches.megous/mtd-spi-nor-gigadevice-add-support-for-gd25lq128e.patch

32 lines
1.2 KiB
Diff
Raw Normal View History

From 2d2a8ac43bac2be0a08882c847536975e35e16f9 Mon Sep 17 00:00:00 2001
From: Martijn Braam <martijn@brixit.nl>
Date: Sat, 29 Jan 2022 23:06:29 +0100
Subject: [PATCH 308/464] mtd: spi-nor: gigadevice: add support for gd25lq128e
The GD25LQ128EWIGR reports an JEDEC id with a different vendor,
otherwise it seems to fit neatly in the gigadevice list.
Signed-off-by: Martijn Braam <martijn@brixit.nl>
---
drivers/mtd/spi-nor/gigadevice.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/mtd/spi-nor/gigadevice.c b/drivers/mtd/spi-nor/gigadevice.c
index d57ddaf1525b..fa29f937006d 100644
--- a/drivers/mtd/spi-nor/gigadevice.c
+++ b/drivers/mtd/spi-nor/gigadevice.c
@@ -58,6 +58,10 @@ static const struct flash_info gigadevice_nor_parts[] = {
FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
SPI_NOR_QUAD_READ) },
+ { "gd25lq128e", INFO(0x257018, 0, 64 * 1024, 256)
+ FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
+ NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
+ SPI_NOR_QUAD_READ) },
{ "gd25q128", INFO(0xc84018, 0, 64 * 1024, 256)
FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
--
2.34.1