Dear All,
I am using LS1012A-FRWY and it has Winbond SPI flash w25q16dw.
I want to enable Quad Enable bit of Status register-2 in order to capture (6bh) Fast Read Quad Output instruction. I have access of mtd spi-nor driver.
Currently I tried below commands to generate the output and I am getting 0xeb command.
root@ls1012afrwy:~# mtd_debug read /dev/mtd0 0x0 100 dump_0x100
Copied 100 bytes from address 0x00000000 in flash to dump_0x100
Is there any way to check the status of this Quad Enable bit?
Can you guide me the process that how to enable/disable Quad Enable bit for Winbond flash placed in NXP FRWYLS1012a or what changes I required to capture 6bh instruction?
Thanks in advance.
解決済! 解決策の投稿を見る。
Please apply the following codes to meet your need.
diff --git a/drivers/mtd/spi-nor/sfdp.c b/drivers/mtd/spi-nor/sfdp.c
index 08de2a2b4452..42a9d7cd20ab 100644
--- a/drivers/mtd/spi-nor/sfdp.c
+++ b/drivers/mtd/spi-nor/sfdp.c
@@ -264,7 +264,7 @@ static const struct sfdp_bfpt_read sfdp_bfpt_reads[] = {
BFPT_DWORD(3), 16, /* Settings */
SNOR_PROTO_1_1_4,
},
-
+#if 0
/* Fast Read 1-4-4 */
{
SNOR_HWCAPS_READ_1_4_4,
@@ -272,7 +272,7 @@ static const struct sfdp_bfpt_read sfdp_bfpt_reads[] = {
BFPT_DWORD(3), 0, /* Settings */
SNOR_PROTO_1_4_4,
},
-
+#endif
/* Fast Read 4-4-4 */
{
SNOR_HWCAPS_READ_4_4_4,
Please apply the following codes to meet your need.
diff --git a/drivers/mtd/spi-nor/sfdp.c b/drivers/mtd/spi-nor/sfdp.c
index 08de2a2b4452..42a9d7cd20ab 100644
--- a/drivers/mtd/spi-nor/sfdp.c
+++ b/drivers/mtd/spi-nor/sfdp.c
@@ -264,7 +264,7 @@ static const struct sfdp_bfpt_read sfdp_bfpt_reads[] = {
BFPT_DWORD(3), 16, /* Settings */
SNOR_PROTO_1_1_4,
},
-
+#if 0
/* Fast Read 1-4-4 */
{
SNOR_HWCAPS_READ_1_4_4,
@@ -272,7 +272,7 @@ static const struct sfdp_bfpt_read sfdp_bfpt_reads[] = {
BFPT_DWORD(3), 0, /* Settings */
SNOR_PROTO_1_4_4,
},
-
+#endif
/* Fast Read 4-4-4 */
{
SNOR_HWCAPS_READ_4_4_4,
@yipingwang Thanks for your reply.
Hi @yipingwang
Above solution also helped me to generate 6Bh command.
When I am doing the similar kind of changes to generate quadspi 4-4-4 command and other dual spi command (1-2-2,1-1-2 or 2-2-2) it's not working as expected. Could you please help me to guide or by suggesting required changes to generate the other mode signals.
Thanks.