Commit 23a810c7 authored by Suhas Kunnath's avatar Suhas Kunnath
Browse files

[recipes-kernel] Added fix for Spansion flash chip erase and write

parent b433beab
......@@ -28,6 +28,7 @@ SRC_URI += "file://defconfig \
file://patches/0001-nor-flash-fix.patch \
file://patches/0001-overlay-manager.patch \
file://patches/0001-backports-to-support-qcacld-v2.3.3-9377-driver.patch \
file://patches/0001-Added-fix-for-spansion-flash-chip.patch \
"
S = "${WORKDIR}/git"
......
diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c
index 09bc90f..51caa3c 100644
--- a/drivers/mtd/spi-nor/fsl-quadspi.c
+++ b/drivers/mtd/spi-nor/fsl-quadspi.c
@@ -594,10 +594,12 @@ static int fsl_qspi_get_seqid(struct fsl_qspi *q, u8 cmd)
return SEQID_RDSR;
case SPINOR_OP_BE_4K:
case SPINOR_OP_SE:
+ case SPINOR_OP_SE_4B:
return SEQID_SE;
case SPINOR_OP_CHIP_ERASE:
return SEQID_CHIP_ERASE;
case SPINOR_OP_PP:
+ case SPINOR_OP_PP_4B:
return SEQID_PP;
case SPINOR_OP_RDID:
return SEQID_RDID;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment