summaryrefslogtreecommitdiff
path: root/src/include/spi_flash.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/spi_flash.h')
-rw-r--r--src/include/spi_flash.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/spi_flash.h b/src/include/spi_flash.h
index e9ea50c4d2..3a6df9ab1f 100644
--- a/src/include/spi_flash.h
+++ b/src/include/spi_flash.h
@@ -120,4 +120,9 @@ int chipset_volatile_group_end(const struct spi_flash *flash);
* if CONFIG_BOOT_DEVICE_SPI_FLASH is enabled. */
const struct spi_flash *boot_device_spi_flash(void);
+/* Protect a region of spi flash using its controller, if available. Returns
+ * < 0 on error, else 0 on success. */
+int spi_flash_ctrlr_protect_region(const struct spi_flash *flash,
+ const struct region *region);
+
#endif /* _SPI_FLASH_H_ */