Skip to contentSkip to conversation

mtd: Add SPI Nor Flash chip GD25LQ256D ID

PATCH In review [email protected] 3 participants 5 messages Sep 30, 2021 – Oct 9, 2021 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: Add SPI Nor Flash chip GD25LQ256D ID

From: "yanhong.wang" <[email protected]>

---
 drivers/mtd/spi/spi-nor-ids.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/mtd/spi/spi-nor-ids.c +5 -0
index 4aef1ddd6e..35fa347c44 100644
@@ -122,6 +122,11 @@ const struct flash_info spi_nor_ids[] = {
 			SECT_4K | SPI_NOR_DUAL_READ |
 			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
 	},
+	{
+		INFO("gd25lq256d", 0xc86019, 0, 64 * 1024, 512,
+			SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
+			SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
+	},
 #endif
 #ifdef CONFIG_SPI_FLASH_ISSI		/* ISSI */
 	/* ISSI */
Signature · 1 line
2.25.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · On Thu, Sep 30, 2021 at 6:55 PM <[email protected]> wrote:

From: "yanhong.wang" <[email protected]>

Please add a brief commit message for this, like providing a datasheet for reference:

https://www.gigadevice.com/datasheet/gd25lq256d/

Quoted 1 line

I believe the name should be spelled as "Yanhong Wang"

Quoted 10 lines
---
 drivers/mtd/spi/spi-nor-ids.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/mtd/spi/spi-nor-ids.c +0 -0
index 4aef1ddd6e..35fa347c44 100644
@@ -122,6 +122,11 @@ const struct flash_info spi_nor_ids[] = {
                        SECT_4K | SPI_NOR_DUAL_READ |

drivers/mtd/spi/spi-nor-ids.c const struct flash_info spi_nor_ids[] = { · line 132

Quoted 10 lines
drivers/mtd/spi/spi-nor-ids.c +5 -0
                        SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
        },
+       {
+               INFO("gd25lq256d", 0xc86019, 0, 64 * 1024, 512,
+                       SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
+                       SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
+       },
 #endif
 #ifdef CONFIG_SPI_FLASH_ISSI           /* ISSI */
        /* ISSI */

Otherwise LGTM: