FRWY-LS1012A Quad IO Read

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FRWY-LS1012A Quad IO Read

1,110 Views
Zubin
Contributor I

Hi,

I am trying to read data from the QSPI flash via u-boot command (
sf read <Load address RAM> <SPI flash address to read> <size>
) and probing at that time.
 
I observed that Fast Read (0Bh) is used
Is that possible to use Fast Read Quad Output (6Bh) while using sf read ?
 
Thanks.
0 Kudos
Reply
3 Replies

1,093 Views
Pavel
NXP Employee
NXP Employee

There is the following explanation in u-boot SPI NOR driver:

 

The Serial Flash Discoverable Parameters are described by the JEDEC JESD216 specification. This is a standard which tends to supported by almost all (Q)SPI memory manufacturers. Those hard-coded tables allow us to learn at runtime the main parameters needed to perform basic SPI flash operations such as Fast Read, Page Program or Sector Erase commands.

 

See attached file.

 

Change this driver for supporting Fast Read Quad Output (6Bh) command.

0 Kudos
Reply

1,020 Views
Zubin
Contributor I

Hi Pavel,

That hard coded table (spi_nor_ids - correct me if I assumed wrong) already contains support for Quad output command.

INFO("w25q16dw", 0xef6015, 0, 64 * 1024, 32,
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)

spi_nor_ids is in spi-nor-ids.c
Should I remove SPI_NOR_DUAL_READ from flags? or Did you mean other type of change?

Thanks,

Zubin

0 Kudos
Reply

566 Views
yogeshdave07
Contributor II

Hi Pavel,

I have ls1012aftwy nxp board and want to generate specific singals for testing different XSPI modes.

1-2-2, 1-2-2,2-2-2,4-4-4 for dual and quad spi signals. 

Could you please suggest any way to achieve this by doing fw changes or any other way.

I did below changes in spi-nor file, which is helping me to generate 1-4-4 (EB command) and 1-1-4 (6B command) but it's not generating other dual and quad spi signals/commands with the same method.

I have removed not required things from below array (from spii-nor.c file) for specific command generation and tested fsl-networking* image for testing but it's not worked.

static const struct sfdp_bfpt_read sfdp_bfpt_reads[] 

Can someone help on this ? Thanks !

0 Kudos
Reply