]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: spi-nor-ids: Enable quad read for Gigadevice gd25lq128
authorNiklas Cassel <niklas.cassel@wdc.com>
Thu, 3 Mar 2022 18:26:39 +0000 (18:26 +0000)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 11 Mar 2022 19:40:01 +0000 (01:10 +0530)
The Gigadevice gd25lq128 serial flash exists in different versions,
all which identify themselves using the same JEDEC id.

gd25lq128c:
https://www.gigadevice.com/datasheet/gd25lq128

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

However, all versions support quad read, so enable it.
Tested and verified on the Sipeed MAix BiT board.

Fixes: 30b9a28a3f2d ("mtd: spi-nor-ids: Add Gigadevice gd25lq128 ID")
Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/mtd/spi/spi-nor-ids.c

index b551ebd75ef5f6e662668f13158f51a5418802d9..763bab04c60e035f3096602f9074fe80fcc96f86 100644 (file)
@@ -119,7 +119,7 @@ const struct flash_info spi_nor_ids[] = {
        },
        {
                INFO("gd25lq128", 0xc86018, 0, 64 * 1024, 256,
-                       SECT_4K | SPI_NOR_DUAL_READ |
+                       SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
                        SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
        },
        {