soc/intel/jasperlake: Use common GSPI devfn mapping
Replace platform-specific gspi.c with the common GSPI device function mapping implementation. Changes: - Select SOC_INTEL_COMMON_FEATURE_GSPI_DEVFN in Kconfig - Define SOC_GSPI_DEVFN(n) macro in pci_devs.h - Remove platform-specific gspi.c file Change-Id: Ie5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4 Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/91318 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
parent
66a6c25ef8
commit
78ef2d0433
4 changed files with 2 additions and 18 deletions
|
|
@ -56,6 +56,7 @@ config SOC_INTEL_JASPERLAKE
|
|||
select SOC_INTEL_COMMON_BLOCK_SMM_IO_TRAP
|
||||
select SOC_INTEL_COMMON_BLOCK_XHCI_ELOG
|
||||
select SOC_INTEL_COMMON_FEATURE
|
||||
select SOC_INTEL_COMMON_FEATURE_GSPI_DEVFN
|
||||
select SOC_INTEL_COMMON_FEATURE_I2C_DEVFN
|
||||
select SOC_INTEL_COMMON_FEATURE_UART_DEVICES
|
||||
select SOC_INTEL_COMMON_FSP_RESET
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ subdirs-y += ../../../cpu/intel/microcode
|
|||
subdirs-y += ../../../cpu/intel/turbo
|
||||
|
||||
# all (bootblock, verstage, romstage, postcar, ramstage)
|
||||
all-y += gspi.c
|
||||
all-y += pmutil.c
|
||||
all-y += spi.c
|
||||
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#include <intelblocks/gspi.h>
|
||||
#include <soc/pci_devs.h>
|
||||
|
||||
int gspi_soc_bus_to_devfn(unsigned int gspi_bus)
|
||||
{
|
||||
switch (gspi_bus) {
|
||||
case 0:
|
||||
return PCH_DEVFN_GSPI0;
|
||||
case 1:
|
||||
return PCH_DEVFN_GSPI1;
|
||||
case 2:
|
||||
return PCH_DEVFN_GSPI2;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
|
@ -197,6 +197,7 @@
|
|||
#define PCI_DEVFN_UART0 PCH_DEVFN_UART0
|
||||
#define PCI_DEVFN_UART1 PCH_DEVFN_UART1
|
||||
#define PCI_DEVFN_UART2 PCH_DEVFN_UART2
|
||||
#define SOC_GSPI_DEVFN(n) PCH_DEVFN_GSPI##n
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue