summaryrefslogtreecommitdiff
path: root/src/soc/intel/tigerlake/spi.c
diff options
context:
space:
mode:
authorSrinidhi N Kaushik <srinidhi.n.kaushik@intel.com>2020-11-25 01:54:35 -0800
committerFurquan Shaikh <furquan@google.com>2020-12-08 22:57:45 +0000
commit237afda813c87fa65cb2adf2df9e7368d0479034 (patch)
tree5638e23151e7f4dda079b23cdadcfd89b618550b /src/soc/intel/tigerlake/spi.c
parent609490854e60aa17fec246642fdf9a6205b33eb4 (diff)
src/soc/intel/tigerlake: Add SPI DMI Destination ID
This change adds the SPI-DMI Destination ID for tigerlake soc. This is needed for enabling support for extended BIOS region. Also, implements a SOC helper function soc_get_spi_dmi_destination_id() which returns SPI-DMI Destination id. BUG=b:171534504 Signed-off-by: Srinidhi N Kaushik <srinidhi.n.kaushik@intel.com> Change-Id: I0b6a8af0c1e79fa668ef2f84b93f3bbece59eb6a Reviewed-on: https://review.coreboot.org/c/coreboot/+/47989 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/intel/tigerlake/spi.c')
-rw-r--r--src/soc/intel/tigerlake/spi.c7
1 files changed, 7 insertions, 0 deletions
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;
+}