[coreboot-gerrit] Change in coreboot[master]: drivers/mrc_cache: Allow non ChromeOS targets to write protect MRC_CACHE

Arthur Heymans (Code Review) gerrit at coreboot.org
Sat Apr 7 19:22:01 CEST 2018


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 at 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();
 

-- 
To view, visit https://review.coreboot.org/25552
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7536e323c87d63deab59ed90115f2d83f74858e0
Gerrit-Change-Number: 25552
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur at aheymans.xyz>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180407/604ba341/attachment.html>


More information about the coreboot-gerrit mailing list