summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/tigerlake/include/soc/pcr_ids.h5
-rw-r--r--src/soc/intel/tigerlake/spi.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/src/soc/intel/tigerlake/include/soc/pcr_ids.h b/src/soc/intel/tigerlake/include/soc/pcr_ids.h
index 7388593484..319558aeba 100644
--- a/src/soc/intel/tigerlake/include/soc/pcr_ids.h
+++ b/src/soc/intel/tigerlake/include/soc/pcr_ids.h
@@ -31,4 +31,9 @@
#define PID_ESPI 0xc7
#define PID_SERIALIO 0xcb
+/*
+ * SPI - DMI Destination ID
+ */
+#define SPI_DMI_DESTINATION_ID 0x23a8
+
#endif
diff --git a/src/soc/intel/tigerlake/spi.c b/src/soc/intel/tigerlake/spi.c
index 63d9d802b9..ef86feafbf 100644
--- a/src/soc/intel/tigerlake/spi.c
+++ b/src/soc/intel/tigerlake/spi.c
@@ -7,7 +7,9 @@
*/
#include <intelblocks/spi.h>
+#include <intelblocks/fast_spi.h>
#include <soc/pci_devs.h>
+#include <soc/pcr_ids.h>
int spi_soc_devfn_to_bus(unsigned int devfn)
{
@@ -23,3 +25,8 @@ int spi_soc_devfn_to_bus(unsigned int devfn)
}
return -1;
}
+
+uint32_t soc_get_spi_dmi_destination_id(void)
+{
+ return SPI_DMI_DESTINATION_ID;
+}