soc/intel/pantherlake: Remove soc_info.[hc] interface
[coreboot2.git] / src / soc / intel / skylake / spi.c
blob74f578f1bbd9395a98bf8c3e74b3809f62437032
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <intelblocks/spi.h>
4 #include <soc/pci_devs.h>
6 int spi_soc_devfn_to_bus(unsigned int devfn)
8 switch (devfn) {
9 case PCH_DEVFN_GSPI0:
10 return 1;
11 case PCH_DEVFN_GSPI1:
12 return 2;
14 return -1;