blob: 27ad5aedcff99967cf2fdef9ea9b08c902f2c4d8 [file] [log] [blame]
Patrick Georgiac959032020-05-05 22:49:26 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Mariusz Szafranskia4041332017-08-02 17:28:17 +02002
Jeff Dalye5ac3002022-01-10 23:47:35 -05003#include <intelblocks/spi.h>
4#include <soc/pci_devs.h>
Mariusz Szafranskia4041332017-08-02 17:28:17 +02005
Jeff Dalye5ac3002022-01-10 23:47:35 -05006int spi_soc_devfn_to_bus(unsigned int devfn)
7{
8 /* Denverton doesn't have GSPI controllers, only Fast SPI */
Mariusz Szafranskia4041332017-08-02 17:28:17 +02009
Jeff Dalye5ac3002022-01-10 23:47:35 -050010 if (devfn == PCH_DEVFN_SPI)
11 return 0;
12 else
13 return -1;
14}