From 3fd41c6a82b75cec8b2f297a9d5102fadd52d3a5 Mon Sep 17 00:00:00 2001 From: Jon Lin Date: Tue, 10 Sep 2024 18:02:28 +0800 Subject: [PATCH] mtd: spinand: Winbond: Set W25N01KWZPIG buffer read Change-Id: I10ed4747df9412af3a826c94822fe68dc3ead705 Signed-off-by: Jon Lin --- drivers/mtd/nand/spi/winbond.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/mtd/nand/spi/winbond.c b/drivers/mtd/nand/spi/winbond.c index 96681c24a9af..b6eac0bf706a 100644 --- a/drivers/mtd/nand/spi/winbond.c +++ b/drivers/mtd/nand/spi/winbond.c @@ -242,6 +242,12 @@ static int winbond_spinand_init(struct spinand_device *spinand) WINBOND_CFG_BUF_READ); } + /* W25N01JWZEIG enable continuous read */ + if (spinand->id.data[1] == 0xaa && spinand->id.data[2] == 0x21) { + spinand_upd_cfg(spinand, BIT(3), BIT(3)); + dev_info(&spinand->spimem->spi->dev, "Enable buf_read\n"); + } + return 0; }