drivers/spi/spi_flash: add flash region protection to controller

Provide a spi controller specific protection callback to take
advantage of special spi flash controllers that have internal
protection registers built into the implementation. It's an
optional callback for spi controllers.


Change-Id: Ie50a6ce3bbda32620a25dd26fda1af944940bf28
Signed-off-by: Aaron Durbn <>
Tested-by: build bot (Jenkins) <>
Reviewed-by: Furquan Shaikh <>
3 files changed