summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/cannonlake/include/soc/pci_devs.h
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2017-11-09 12:16:36 +0530
committerAaron Durbin <adurbin@chromium.org>2017-11-11 18:19:31 +0000
commit09564fce556558dfe9c14dd756513545ffeb1914 (patch)
treed1efa710c16026bc310115b7a70d2b1d2cdf3be5 /src/soc/intel/cannonlake/include/soc/pci_devs.h
parent6c4b5916fcd4844410a709320ab7bf5a06a45596 (diff)
downloadcoreboot-09564fce556558dfe9c14dd756513545ffeb1914.tar.gz
coreboot-09564fce556558dfe9c14dd756513545ffeb1914.tar.bz2
coreboot-09564fce556558dfe9c14dd756513545ffeb1914.zip
soc/intel/{cannonlake,skylake}: Add _soc_ prefix in spi soc routine
This ensures that function callback into the SoC code. Change-Id: Idc16d315ba25d17a2ab537fcdf0c2b51c8802a67 Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/22392 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/cannonlake/include/soc/pci_devs.h')
-rw-r--r--src/soc/intel/cannonlake/include/soc/pci_devs.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/soc/intel/cannonlake/include/soc/pci_devs.h b/src/soc/intel/cannonlake/include/soc/pci_devs.h
index 285fbd68e5b9..4d677debe056 100644
--- a/src/soc/intel/cannonlake/include/soc/pci_devs.h
+++ b/src/soc/intel/cannonlake/include/soc/pci_devs.h
@@ -175,26 +175,4 @@
#define PCH_DEV_GBE _PCH_DEV(LPC, 6)
#define PCH_DEV_TRACEHUB _PCH_DEV(LPC, 7)
-static inline int spi_devfn_to_bus(unsigned int devfn)
-{
- switch (devfn) {
- case PCH_DEVFN_SPI: return 0;
- case PCH_DEVFN_GSPI0: return 1;
- case PCH_DEVFN_GSPI1: return 2;
- case PCH_DEVFN_GSPI2: return 3;
- }
- return -1;
-}
-
-static inline int spi_bus_to_devfn(unsigned int bus)
-{
- switch (bus) {
- case 0: return PCH_DEVFN_SPI;
- case 1: return PCH_DEVFN_GSPI0;
- case 2: return PCH_DEVFN_GSPI1;
- case 3: return PCH_DEVFN_GSPI2;
- }
- return -1;
-}
-
#endif