soc: Remove copyright notices
[coreboot.git] / src / soc / intel / icelake / spi.c
blob9f3f44a227714cc3513cc019386a18ad2a83433e
1 /*
2 * This file is part of the coreboot project.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #include <intelblocks/spi.h>
17 #include <soc/pci_devs.h>
19 int spi_soc_devfn_to_bus(unsigned int devfn)
21 switch (devfn) {
22 case PCH_DEVFN_SPI:
23 return 0;
24 case PCH_DEVFN_GSPI0:
25 return 1;
26 case PCH_DEVFN_GSPI1:
27 return 2;
28 case PCH_DEVFN_GSPI2:
29 return 3;
31 return -1;