ec/google/chromeec: Define ACPI_NOTIFY_CROS_EC_MKBP constant
[coreboot.git] / src / soc / intel / pantherlake / spi.c
blobf7d751f98eb4fcdd28a6264c994f0711e4e9125f
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <intelblocks/fast_spi.h>
4 #include <intelblocks/spi.h>
5 #include <soc/pci_devs.h>
7 #define PSF_SPI_DESTINATION_ID 0x5140
9 int spi_soc_devfn_to_bus(unsigned int devfn)
11 switch (devfn) {
12 case PCI_DEVFN_GSPI0:
13 return 1;
14 case PCI_DEVFN_GSPI1:
15 return 2;
16 case PCI_DEVFN_GSPI2:
17 return 3;
19 return -1;
22 uint32_t soc_get_spi_psf_destination_id(void)
24 return PSF_SPI_DESTINATION_ID;