repo.or.cz
/
coreboot2.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
mb/google/brya/var/orisa: Update Type C DisplayPort HPD Configuration
[coreboot2.git]
/
src
/
soc
/
intel
/
skylake
/
gspi.c
blob
4952dffc7d2aa4f4ee0a54c402fe9b9470666af1
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
#include <intelblocks/gspi.h>
3
#include <soc/pci_devs.h>
4
5
int
gspi_soc_bus_to_devfn
(
unsigned int
gspi_bus
)
6
{
7
switch
(
gspi_bus
) {
8
case
0
:
9
return
PCH_DEVFN_GSPI0
;
10
case
1
:
11
return
PCH_DEVFN_GSPI1
;
12
}
13
return
-
1
;
14
}