repo.or.cz
/
coreboot.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
mb/system76/cml-u/dt: Make use of chipset devicetree
[coreboot.git]
/
src
/
soc
/
intel
/
apollolake
/
gspi.c
blob
e29b72f6b8bdfce27fb981685f0e6e6abc7c4e07
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
#include <intelblocks/gspi.h>
4
#include <soc/pci_devs.h>
5
6
int
gspi_soc_bus_to_devfn
(
unsigned int
gspi_bus
)
7
{
8
switch
(
gspi_bus
) {
9
case
0
:
10
return
PCH_DEVFN_SPI0
;
11
case
1
:
12
return
PCH_DEVFN_SPI1
;
13
case
2
:
14
return
PCH_DEVFN_SPI2
;
15
}
16
return
-
1
;
17
}