soc: Remove copyright notices
[coreboot.git] / src / soc / intel / cannonlake / gspi.c
blob706eeac854378b23bfaba1988470b66ae0a8f879
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/gspi.h>
17 #include <soc/pci_devs.h>
19 int gspi_soc_bus_to_devfn(unsigned int gspi_bus)
21 switch (gspi_bus) {
22 case 0:
23 return PCH_DEVFN_GSPI0;
24 case 1:
25 return PCH_DEVFN_GSPI1;
26 case 2:
27 return PCH_DEVFN_GSPI2;
29 return -1;