mb/system76/cml-u/dt: Make use of chipset devicetree
[coreboot.git] / src / soc / intel / elkhartlake / gspi.c
blob61ad2608db2b559335c7e26efe22deed72b7655b
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <intelblocks/gspi.h>
4 #include <soc/pci_devs.h>
6 int gspi_soc_bus_to_devfn(unsigned int gspi_bus)
8 switch (gspi_bus) {
9 case 0:
10 return PCH_DEVFN_GSPI0;
11 case 1:
12 return PCH_DEVFN_GSPI1;
13 case 2:
14 return PCH_DEVFN_GSPI2;
16 return -1;