Enable Quad Enable Bit in Status Register2 to enable Fast Read Quad Output (6Bh)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Enable Quad Enable Bit in Status Register2 to enable Fast Read Quad Output (6Bh)

跳至解决方案
2,085 次查看
Maulik_Manvar
Contributor II

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.

0 项奖励
回复
1 解答
2,046 次查看
yipingwang
NXP TechSupport
NXP TechSupport

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,

在原帖中查看解决方案

3 回复数
2,047 次查看
yipingwang
NXP TechSupport
NXP TechSupport

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,

2,032 次查看
Maulik_Manvar
Contributor II

@yipingwang  Thanks for your reply.

0 项奖励
回复
1,108 次查看
yogeshdave07
Contributor II

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.

0 项奖励
回复