mb/system76/cml-u/dt: Make use of chipset devicetree
[coreboot.git] / src / soc / intel / apollolake / spi.c
blobd0d615cd085cc01677c964095a453b6dea89bcfa
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_SPI0:
10 return 0;
11 case PCH_DEVFN_SPI1:
12 return 1;
13 case PCH_DEVFN_SPI2:
14 return 2;
16 return -1;