drivers: flash: add API to access SFDP region of serial flash devices

Some flash drivers are capable of issuing a JESD216 READ_SFDP command
to read serial flash discoverable parameters.  Allow applications and
utilities access to that capability where it's supported.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
Peter A. Bigot 2020-06-03 19:55:54 -05:00 committed by Anas Nashif
commit 4eb8d9dd9e
4 changed files with 67 additions and 1 deletions

View file

@ -23,6 +23,14 @@ config FLASH_JESD216
Selected by drivers that support JESD216-compatible flash
devices to enable building a common support module.
config FLASH_JESD216_API
bool "Provide API to read JESD216 flash parameters"
help
This option extends the Zephyr flash API with the ability
to access the Serial Flash Discoverable Parameter section
allowing runtime determination of serial flash parameters
for flash drivers that expose this capability.
menuconfig FLASH
bool "Flash hardware support"
help