Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/25552
Change subject: drivers/mrc_cache: Allow non ChromeOS targets to write protect MRC_CACHE ......................................................................
drivers/mrc_cache: Allow non ChromeOS targets to write protect MRC_CACHE
Change-Id: I7536e323c87d63deab59ed90115f2d83f74858e0 Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M src/drivers/mrc_cache/mrc_cache.c 1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/52/25552/1
diff --git a/src/drivers/mrc_cache/mrc_cache.c b/src/drivers/mrc_cache/mrc_cache.c index eec1591..51f1217 100644 --- a/src/drivers/mrc_cache/mrc_cache.c +++ b/src/drivers/mrc_cache/mrc_cache.c @@ -432,12 +432,12 @@ u8 wp_gpio; u8 wp_spi;
- if (!IS_ENABLED(CONFIG_CHROMEOS)) - return 0; - if (!IS_ENABLED(CONFIG_BOOT_DEVICE_SPI_FLASH)) return 0;
+ if (!IS_ENABLED(CONFIG_CHROMEOS)) + return 1; + /* Read Write Protect GPIO if available */ wp_gpio = get_write_protect_state();