vboot: Remove get_sw_write_protect_state callback
We've just decided to remove the only known use of the VBSD_SW_WP flag in vboot (https://chromium-review.googlesource.com/c/575389), since it was unused and never reliable on all platforms anyway. Therefore, we can now also remove the coreboot infrastructure that supported it. It doesn't really hurt anyone, but removing it saves a small bit of effort for future platforms. Change-Id: I6706eba2761a73482e03f3bf46343cf1d84f154b Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/20628 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
@@ -384,16 +384,3 @@ void mainboard_save_dimm_info(void)
|
||||
{
|
||||
printk(BIOS_DEBUG, "WEAK: %s/%s called\n", __FILE__, __func__);
|
||||
}
|
||||
|
||||
int get_sw_write_protect_state(void)
|
||||
{
|
||||
uint8_t status;
|
||||
const struct spi_flash *flash;
|
||||
|
||||
flash = boot_device_spi_flash();
|
||||
if (!flash)
|
||||
return 0;
|
||||
|
||||
/* Return unprotected status if status read fails. */
|
||||
return spi_flash_status(flash, &status) ? 0 : !!(status & 0x80);
|
||||
}
|
||||
|
Reference in New Issue
Block a user