summaryrefslogtreecommitdiff
path: root/src/soc/intel
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel')
-rw-r--r--src/soc/intel/apollolake/romstage.c13
-rw-r--r--src/soc/intel/baytrail/romstage/romstage.c7
-rw-r--r--src/soc/intel/broadwell/romstage/romstage.c7
-rw-r--r--src/soc/intel/skylake/romstage/romstage.c8
4 files changed, 0 insertions, 35 deletions
diff --git a/src/soc/intel/apollolake/romstage.c b/src/soc/intel/apollolake/romstage.c
index 24e00df3fd..7c9268af14 100644
--- a/src/soc/intel/apollolake/romstage.c
+++ b/src/soc/intel/apollolake/romstage.c
@@ -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);
-}
diff --git a/src/soc/intel/baytrail/romstage/romstage.c b/src/soc/intel/baytrail/romstage/romstage.c
index b6bc64c583..c163257ec0 100644
--- a/src/soc/intel/baytrail/romstage/romstage.c
+++ b/src/soc/intel/baytrail/romstage/romstage.c
@@ -326,10 +326,3 @@ static void *setup_stack_and_mttrs(void)
return slot;
}
-
-int get_sw_write_protect_state(void)
-{
- u8 status;
- /* Return unprotected status if status read fails. */
- return (early_spi_read_wpsr(&status) ? 0 : !!(status & 0x80));
-}
diff --git a/src/soc/intel/broadwell/romstage/romstage.c b/src/soc/intel/broadwell/romstage/romstage.c
index b5e52292a4..1417b802cf 100644
--- a/src/soc/intel/broadwell/romstage/romstage.c
+++ b/src/soc/intel/broadwell/romstage/romstage.c
@@ -123,11 +123,4 @@ asmlinkage void romstage_after_car(void)
;
}
-int get_sw_write_protect_state(void)
-{
- u8 status;
- /* Return unprotected status if status read fails. */
- return early_spi_read_wpsr(&status) ? 0 : !!(status & 0x80);
-}
-
void __attribute__((weak)) mainboard_pre_console_init(void) {}
diff --git a/src/soc/intel/skylake/romstage/romstage.c b/src/soc/intel/skylake/romstage/romstage.c
index cb704fd635..50c050ef45 100644
--- a/src/soc/intel/skylake/romstage/romstage.c
+++ b/src/soc/intel/skylake/romstage/romstage.c
@@ -53,14 +53,6 @@ void soc_pre_ram_init(struct romstage_params *params)
soc_fill_pei_data(params->pei_data);
}
-int get_sw_write_protect_state(void)
-{
- u8 status;
-
- /* Return unprotected status if status read fails. */
- return fast_spi_flash_read_wpsr(&status) ? 0 : !!(status & 0x80);
-}
-
/* UPD parameters to be initialized before MemoryInit */
void soc_memory_init_params(struct romstage_params *params,
MEMORY_INIT_UPD *upd)