blob: 83552f9435e72f8eaec87635792faf7b06147c61 [file] [log] [blame]
Patrick Georgiac959032020-05-05 22:49:26 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Subrata Banik91e89c52019-11-01 18:30:01 +05302
3/*
4 * This file is created based on Intel Tiger Lake Processor PCH Datasheet
5 * Document number: 575857
6 * Chapter number: 11
7 */
8
9#include <intelblocks/gspi.h>
10#include <soc/pci_devs.h>
11
12int gspi_soc_bus_to_devfn(unsigned int gspi_bus)
13{
14 switch (gspi_bus) {
15 case 0:
16 return PCH_DEVFN_GSPI0;
17 case 1:
18 return PCH_DEVFN_GSPI1;
19 case 2:
20 return PCH_DEVFN_GSPI2;
21 }
22 return -1;
23}