public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 1/2] mtd: nand: spi: Only one dummy byte in QUADIO
@ 2021-02-11 12:05 Reto Schneider
  2021-02-11 12:05 ` [PATCH v2 2/2] mtd: nand: spi: Support GigaDevice GD5F1GQ5UExxG Reto Schneider
  0 siblings, 1 reply; 2+ messages in thread
From: Reto Schneider @ 2021-02-11 12:05 UTC (permalink / raw)
  To: u-boot

From: Hauke Mehrtens <hauke@hauke-m.de>

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>
---
Changes in v2:
 - Adjust authorship to original author, declare own work separately

 drivers/mtd/nand/spi/gigadevice.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/spi/gigadevice.c b/drivers/mtd/nand/spi/gigadevice.c
index 0b228dcb5b..5de0ebbb7b 100644
--- a/drivers/mtd/nand/spi/gigadevice.c
+++ b/drivers/mtd/nand/spi/gigadevice.c
@@ -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),
-- 
2.29.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-11 12:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-11 12:05 [PATCH v2 1/2] mtd: nand: spi: Only one dummy byte in QUADIO Reto Schneider
2021-02-11 12:05 ` [PATCH v2 2/2] mtd: nand: spi: Support GigaDevice GD5F1GQ5UExxG Reto Schneider

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox