
Add functionality to read and parse SFDP parameters to auto-detect flash size, page size and address width of flash. This enables flash access above 16MB using 4-byte addressing mode.
Add driver support to get SFDP information of flash and use it to access flash above 16MB. --- Changes in v2: - Make SFDP parsing the default way to read flash parameters. - Change SPI_FLASH_USE_SFDP flag to SPI_FLASH_SKIP_SFDP to provide an option to skip SFDP parsing for a particular flash. - Convert patch-set of 3 patches to 2 patches. --- Rajat Srivastava (2): mtd/spi: Add JEDEC SFDP support in SPI framework fsl_qspi: Access flash above 16MB using SFDP
drivers/mtd/spi/sf_internal.h | 4 + drivers/mtd/spi/spi_flash.c | 301 +++++++++++++++++++++++++++++++++++++++--- drivers/spi/fsl_qspi.c | 103 ++++++++++++++- include/spi.h | 2 + include/spi_flash.h | 120 +++++++++++++++++ 5 files changed, 502 insertions(+), 28 deletions(-)