From 0d0b2f45f65afa6c845c4754de50d71f98a69394 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Tue, 26 May 2020 22:12:14 +0200 Subject: spi: Remove non_volatile flag from block protection interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only Winbond parts seem to support making status register writes volatile. So this flag should not be exposed in the generic interface. Change-Id: Idadb65ffaff0dd7809b18c53086a466122b37c12 Signed-off-by: Daniel Gröber Reviewed-on: https://review.coreboot.org/c/coreboot/+/41746 Reviewed-by: Patrick Rudolph Tested-by: build bot (Jenkins) --- src/include/spi_flash.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/include/spi_flash.h') diff --git a/src/include/spi_flash.h b/src/include/spi_flash.h index 9d0e3ad08c..35b02dbb3d 100644 --- a/src/include/spi_flash.h +++ b/src/include/spi_flash.h @@ -74,7 +74,6 @@ struct spi_flash_protection_ops { int (*set_write)(const struct spi_flash *flash, const struct region *region, - const bool non_volatile, const enum spi_flash_status_reg_lockdown mode); }; @@ -170,7 +169,6 @@ int spi_flash_is_write_protected(const struct spi_flash *flash, * * @param flash : A SPI flash device * @param region: A subregion of the device's region - * @param non_volatile: Write status register non-volatile * @param mode: Optional lock-down of status register * @return 0 on success @@ -178,7 +176,6 @@ int spi_flash_is_write_protected(const struct spi_flash *flash, int spi_flash_set_write_protected(const struct spi_flash *flash, const struct region *region, - const bool non_volatile, const enum spi_flash_status_reg_lockdown mode); /* -- cgit v1.2.3