aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/spi/boot_device_rw_nommap.c
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2020-05-26 22:12:14 +0200
committerPhilipp Deppenwiese <zaolin.daisuki@gmail.com>2020-06-08 07:51:18 +0000
commit0d0b2f45f65afa6c845c4754de50d71f98a69394 (patch)
treec70b392d2bdbf13dbf6e0985740a8f6776c43ac3 /src/drivers/spi/boot_device_rw_nommap.c
parentbcb4a77fb11dc3cc8b0c74559e4f47549db368e4 (diff)
spi: Remove non_volatile flag from block protection interface
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 <dxld@darkboxed.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41746 Reviewed-by: Patrick Rudolph <siro@das-labor.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/spi/boot_device_rw_nommap.c')
-rw-r--r--src/drivers/spi/boot_device_rw_nommap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/spi/boot_device_rw_nommap.c b/src/drivers/spi/boot_device_rw_nommap.c
index a383f268db..ba11d05d99 100644
--- a/src/drivers/spi/boot_device_rw_nommap.c
+++ b/src/drivers/spi/boot_device_rw_nommap.c
@@ -97,7 +97,7 @@ int boot_device_wp_region(const struct region_device *rd,
if (spi_flash_is_write_protected(boot_dev,
region_device_region(rd)) != 1) {
return spi_flash_set_write_protected(boot_dev,
- region_device_region(rd), true,
+ region_device_region(rd),
SPI_WRITE_PROTECTION_REBOOT);
}