Hi,
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.
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
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 !