diff options
author | Werner Zeh <werner.zeh@siemens.com> | 2022-08-29 12:44:02 +0200 |
---|---|---|
committer | Paul Fagerburg <pfagerburg@chromium.org> | 2022-09-22 15:34:24 +0000 |
commit | 777099046f88f96921e21ad2e0a58b2fe66b25aa (patch) | |
tree | 0169a8a4c2da1e267c49248682eaa2b3dbed85c2 /src/soc/intel/skylake | |
parent | 3083f359c88d1d94587b2ed715a14a3d01ca1034 (diff) |
soc/intel/spi: Move BIOS flash SPI controllers to fast SPI driver
There are two classes of SPI controllers on Intel chipsets:
* generic usable SPI controllers
* SPI controller hosting the BIOS flash (fast SPI controller)
While the first class can be used for generic peripheral attachment the
second class mostly controls the BIOS flash and a TPM device (if
enabled). The generic SPI driver is not fully applicable to the fast SPI
controller. In addition, the fast SPI controller reports the reserved
MMIO range used for the BIOS flash mapping so that the OS is aware of
this range.
This patch moves the fast SPI controller of all known SoCs to the
fast SPI driver in common code. In addition, the PCI device for the
fast SPI controller is removed from the function 'spi_soc_devfn_to_bus'
as this is a callback of the generic SPI driver.
Change-Id: Ia881c1d274acdcf7f042dd8284048a7dd018a84b
Signed-off-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/67173
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/soc/intel/skylake')
-rw-r--r-- | src/soc/intel/skylake/spi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/soc/intel/skylake/spi.c b/src/soc/intel/skylake/spi.c index 63dd80aa1f..74f578f1bb 100644 --- a/src/soc/intel/skylake/spi.c +++ b/src/soc/intel/skylake/spi.c @@ -6,8 +6,6 @@ int spi_soc_devfn_to_bus(unsigned int devfn) { switch (devfn) { - case PCH_DEVFN_SPI: - return 0; case PCH_DEVFN_GSPI0: return 1; case PCH_DEVFN_GSPI1: |