summaryrefslogtreecommitdiff
path: root/src/soc/intel/skylake/gspi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/skylake/gspi.c')
-rw-r--r--src/soc/intel/skylake/gspi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/intel/skylake/gspi.c b/src/soc/intel/skylake/gspi.c
index eef5433826..252be7771c 100644
--- a/src/soc/intel/skylake/gspi.c
+++ b/src/soc/intel/skylake/gspi.c
@@ -17,6 +17,7 @@
#include <assert.h>
#include <device/device.h>
#include <intelblocks/gspi.h>
+#include <intelblocks/spi.h>
#include <soc/iomap.h>
#include "chip.h"
@@ -66,5 +67,5 @@ int gspi_soc_bus_to_devfn(unsigned int gspi_bus)
if (gspi_bus >= CONFIG_SOC_INTEL_COMMON_BLOCK_GSPI_MAX)
return -1;
- return spi_bus_to_devfn(GSPI_TO_SPI_BUS(gspi_bus));
+ return spi_soc_bus_to_devfn(GSPI_TO_SPI_BUS(gspi_bus));
}