]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: nand: spi: Only one dummy byte in QUADIO
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 11 Feb 2021 12:05:47 +0000 (13:05 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 26 Feb 2021 10:31:29 +0000 (16:01 +0530)
The datasheet only lists one dummy byte in the 0xEB operation for the
following chips:
* GD5F1GQ4xExxG
* GD5F1GQ4xFxxG
* GD5F1GQ4UAYIG
* GD5F4GQ4UAYIG

Reto Schneider:
- Linux patch ported to U-Boot
- Checked for compatibility with GD5F1GQ4xBxxG
- Fixed operation code in original commit message (0xEH -> 0xEB)

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Acked-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/mtd/nand/spi/gigadevice.c

index 0b228dcb5b1d4a4488732929d123ed55e16753e7..5de0ebbb7bfdc057685e926315c41b2ed3d3f0db 100644 (file)
@@ -20,7 +20,7 @@
 #define GD5FXGQ4XEXXG_REG_STATUS2              0xf0
 
 static SPINAND_OP_VARIANTS(read_cache_variants,
-               SPINAND_PAGE_READ_FROM_CACHE_QUADIO_OP(0, 2, NULL, 0),
+               SPINAND_PAGE_READ_FROM_CACHE_QUADIO_OP(0, 1, NULL, 0),
                SPINAND_PAGE_READ_FROM_CACHE_X4_OP(0, 1, NULL, 0),
                SPINAND_PAGE_READ_FROM_CACHE_DUALIO_OP(0, 1, NULL, 0),
                SPINAND_PAGE_READ_FROM_CACHE_X2_OP(0, 1, NULL, 0),