From 65f5932e0cb48ce333e4e0625a7740f8f9ce1ddf Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Sat, 19 Dec 2020 19:35:08 +0530 Subject: [PATCH] soc/intel/alderlake: Add SPI DMI Destination ID Port commit 237afda (src/soc/intel/tigerlake: Add SPI DMI Destination ID) into Alderlake. Change-Id: Ia0b465d405ab3c70b7d4094d32c182cab30fe531 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/48754 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Tim Wawrzynczak --- src/soc/intel/alderlake/include/soc/pcr_ids.h | 6 ++++++ src/soc/intel/alderlake/spi.c | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/src/soc/intel/alderlake/include/soc/pcr_ids.h b/src/soc/intel/alderlake/include/soc/pcr_ids.h index baeb7083d7..e05ecd80b8 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 2940de1c12..b02f2a20fd 100644 --- a/src/soc/intel/alderlake/spi.c +++ b/src/soc/intel/alderlake/spi.c @@ -6,8 +6,10 @@ * Chapter number: 7 */ +#include #include #include +#include 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; +}