drivers: flash: jesd216: add JESD216 API for use in shared drivers
The spi_nor flash interface was designed for flash devices that use a standard SPI interface to devices that are compatible with the Micron M25P80 serial flash, identified in Linux as compatible jedec,spi-nor. The JEDEC Serial Flash Discoverable Parameters standard (JESD216) was designed to allow these devices to be self-describing. As we are increasingly being asked to support flash memories that do not use "standard" erase sizes or commands we need data structures and helper functions to extract information about a flash interface at runtime. For some of these devices the commands hard-coded in the current implementation are simply wrong. Define generic structures that support the SFDP hierarchy and the core Basic Flash Parameters table. The description will also support SPI-NAND and xSPI devices that conform to the JESD216 standards. Add bitfield values and helper functions to extract some information that drivers might need from JESD216 fields. At this time only information that is likely to be used is extracted; more may be added in the future. Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
parent
40a0d076e2
commit
bfcd64c29d
4 changed files with 713 additions and 0 deletions
|
@ -17,6 +17,12 @@ config FLASH_HAS_PAGE_LAYOUT
|
|||
This option is enabled when the SoC flash driver supports
|
||||
retrieving the layout of flash memory pages.
|
||||
|
||||
config FLASH_JESD216
|
||||
bool
|
||||
help
|
||||
Selected by drivers that support JESD216-compatible flash
|
||||
devices to enable building a common support module.
|
||||
|
||||
menuconfig FLASH
|
||||
bool "Flash hardware support"
|
||||
help
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue