coreboot/src
Subrata Banik a26bb7878b soc/intel/cmn/fast_spi: Add API to check if SPI Cycle In Progress
This patch creates a helper function to check if any SPI transaction
is pending.

As per Intel PCH BIOS spec section 3.6 Flash Security Recommendation,
it's important to ensure there is no pending SPI transaction before
setting SPI lock bits.

BUG=b:211954778
TEST=Able to build google/brya with this patch and no error msg seen
due to `SPI transaction is pending`.

Signed-off-by: Subrata Banik <subratabanik@google.com>
Change-Id: Ibd3f67ae60bfcb3610cd0950b057da97ff74b5b9
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63624
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
2022-04-19 05:45:43 +00:00
..
acpi src/acpi/device: Early return in _ON if device already enabled 2022-04-14 22:30:05 +00:00
arch x86/mtrr: Print address ranges inclusive to be more consistent 2022-04-14 15:43:27 +00:00
commonlib coreboot_tables: Replace 'struct lb_uint64' with lb_uint64_t 2022-04-14 22:27:50 +00:00
console src/console/Kconfig: Add option to disable loglevel prefix 2022-03-30 00:02:34 +00:00
cpu x86/mtrr: Print address ranges inclusive to be more consistent 2022-04-14 15:43:27 +00:00
device device/i2c_bus: Constify i2c_busdev and i2c_link 2022-04-01 22:17:58 +00:00
drivers drivers/usb/acpi: acpi_power_res_params: Add use_gpio_for_status 2022-04-14 22:29:10 +00:00
ec ec/google/chromeec: Initialize device_path subid 2022-04-07 16:20:59 +00:00
include cpu/x86: Add function to set put_back_original_solution variable 2022-04-13 21:28:10 +00:00
lib coreboot_tables: Replace 'struct lb_uint64' with lb_uint64_t 2022-04-14 22:27:50 +00:00
mainboard mb/google/guybrush: Remove EC_ENABLE_LID_SWITCH 2022-04-18 23:03:59 +00:00
northbridge nb/intel/sandybridge: Restore mainboard_early_init() call 2022-04-10 08:47:57 +00:00
security {drivers/security}: Replace cb_err_t with enum cb_err 2022-03-09 08:40:43 +00:00
soc soc/intel/cmn/fast_spi: Add API to check if SPI Cycle In Progress 2022-04-19 05:45:43 +00:00
southbridge sb/amd/hudson/spi.c: Use C over CPP conditional 2022-03-25 20:06:57 +00:00
superio Use the fallthrough statement in switch loops 2022-02-16 21:29:53 +00:00
vendorcode ChromeOS: Add DECLARE_x_CROS_GPIOS() 2022-04-07 20:38:12 +00:00
Kconfig src/Kconfig: Update the path to 'c_start.S' for GDB_STUB config 2022-02-22 20:49:10 +00:00