Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47295 )
Change subject: soc/intel/xeon_sp/skx: Copy the cpx function to get the IIO HOB ......................................................................
soc/intel/xeon_sp/skx: Copy the cpx function to get the IIO HOB
Change-Id: Ia8ef415c36bd915931fcc60231aa624c75bba670 Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M src/soc/intel/xeon_sp/skx/include/soc/soc_util.h M src/soc/intel/xeon_sp/skx/soc_util.c 2 files changed, 13 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/47295/1
diff --git a/src/soc/intel/xeon_sp/skx/include/soc/soc_util.h b/src/soc/intel/xeon_sp/skx/include/soc/soc_util.h index cce542a..e0d66d6 100644 --- a/src/soc/intel/xeon_sp/skx/include/soc/soc_util.h +++ b/src/soc/intel/xeon_sp/skx/include/soc/soc_util.h @@ -14,7 +14,7 @@ uint8_t get_iiostack_info(struct iiostack_resource *info);
void xeonsp_init_cpu_config(void); - +const IIO_UDS *get_iio_uds(void); void config_reset_cpl3_csrs(void);
void get_core_thread_bits(uint32_t *core_bits, uint32_t *thread_bits); diff --git a/src/soc/intel/xeon_sp/skx/soc_util.c b/src/soc/intel/xeon_sp/skx/soc_util.c index 3af6483..853846c 100644 --- a/src/soc/intel/xeon_sp/skx/soc_util.c +++ b/src/soc/intel/xeon_sp/skx/soc_util.c @@ -46,6 +46,18 @@ * +-------------------------+ */
+const IIO_UDS *get_iio_uds(void) +{ + size_t hob_size; + static const IIO_UDS *hob; + const uint8_t fsp_hob_iio_universal_data_guid[16] = FSP_HOB_IIO_UNIVERSAL_DATA_GUID; + + if (hob == NULL) + hob = fsp_find_extension_hob_by_guid(fsp_hob_iio_universal_data_guid, &hob_size); + assert(hob != NULL && hob_size != 0); + return hob; +} + static uint32_t get_socket_stack_busno(uint32_t socket, uint32_t stack) { size_t hob_size;