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,165件の閲覧回数
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,126件の閲覧回数
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,127件の閲覧回数
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,112件の閲覧回数
Maulik_Manvar
Contributor II

@yipingwang  Thanks for your reply.

0 件の賞賛
返信
1,188件の閲覧回数
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 件の賞賛
返信