summaryrefslogtreecommitdiffstats
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/alderlake/include/soc/pcr_ids.h6
-rw-r--r--src/soc/intel/alderlake/spi.c7
2 files changed, 13 insertions, 0 deletions
diff --git a/src/soc/intel/alderlake/include/soc/pcr_ids.h b/src/soc/intel/alderlake/include/soc/pcr_ids.h
index baeb7083d7d3..e05ecd80b8c3 100644
--- a/src/soc/intel/alderlake/include/soc/pcr_ids.h
+++ b/src/soc/intel/alderlake/include/soc/pcr_ids.h
@@ -32,4 +32,10 @@
#define PID_ITSS 0xc4
#define PID_SERIALIO 0xcb
+
+/*
+ * SPI - DMI Destination ID
+ */
+#define SPI_DMI_DESTINATION_ID 0x23a8
+
#endif
diff --git a/src/soc/intel/alderlake/spi.c b/src/soc/intel/alderlake/spi.c
index 2940de1c12f5..b02f2a20fda3 100644
--- a/src/soc/intel/alderlake/spi.c
+++ b/src/soc/intel/alderlake/spi.c
@@ -6,8 +6,10 @@
* Chapter number: 7
*/
+#include <intelblocks/fast_spi.h>
#include <intelblocks/spi.h>
#include <soc/pci_devs.h>
+#include <soc/pcr_ids.h>
int spi_soc_devfn_to_bus(unsigned int devfn)
{
@@ -25,3 +27,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;
+}