soc/intel/common: Drop locking function fast_spi_set_vcl

Drop function fast_spi_set_vcl as the same code already exists
as fast_spi_vscc0_lock() and is already run on xeon_sp.

Change-Id: I86180c209e2d550c2bac3ace9cc344eabf950af0
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85437
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shuo Liu <shuo.liu@intel.com>
This commit is contained in:
Patrick Rudolph 2024-12-02 12:38:42 +01:00 committed by Lean Sheng Tan
commit 3189afbdee
4 changed files with 0 additions and 17 deletions

View file

@ -464,17 +464,6 @@ void fast_spi_set_bde(void)
pci_or_config32(dev, SPI_BIOS_DECODE_EN, SPI_BIOS_DECODE_LOCK);
}
/* Set FAST_SPIBAR + SPIBAR_SFDP0_VSCC0 (0xc4) Vendor Control Lock */
void fast_spi_set_vcl(void)
{
void *spibar = fast_spi_get_bar();
uint32_t vcss;
vcss = read32(spibar + SPIBAR_SFDP0_VSCC0);
vcss |= SPIBAR_SFDP0_VSCC0_VCL;
write32(spibar + SPIBAR_SFDP0_VSCC0, vcss);
}
void fast_spi_clear_outstanding_status(void)
{
void *spibar = fast_spi_get_bar();

View file

@ -107,9 +107,5 @@ void fast_spi_cache_ext_bios_postcar(struct postcar_frame *pcf);
* Set FAST_SPIBAR BIOS Decode Lock bit
*/
void fast_spi_set_bde(void);
/*
* Set FAST_SPIBAR Vendor Component Lock bit.
*/
void fast_spi_set_vcl(void);
#endif /* SOC_INTEL_COMMON_BLOCK_FAST_SPI_H */

View file

@ -13,6 +13,5 @@ void spi_lockdown_config(int chipset_lockdown)
{
if (chipset_lockdown == CHIPSET_LOCKDOWN_COREBOOT) {
fast_spi_set_bde();
fast_spi_set_vcl();
}
}

View file

@ -13,6 +13,5 @@ void spi_lockdown_config(int chipset_lockdown)
{
if (chipset_lockdown == CHIPSET_LOCKDOWN_COREBOOT) {
fast_spi_set_bde();
fast_spi_set_vcl();
}
}