From: Simon Glass Date: Sat, 7 Dec 2019 04:42:21 +0000 (-0700) Subject: x86: fsp: Allow remembering the location of FSP-S X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=748ff5350ae880ea01d3d72214122c3552a5185f;p=u-boot.git x86: fsp: Allow remembering the location of FSP-S FSP-S is used by the notify call after it has been used for silicon init. To avoid having to load it again, add a field to store the location. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- diff --git a/arch/x86/include/asm/global_data.h b/arch/x86/include/asm/global_data.h index 190b604e0f..f4c1839104 100644 --- a/arch/x86/include/asm/global_data.h +++ b/arch/x86/include/asm/global_data.h @@ -120,6 +120,9 @@ struct arch_global_data { int prev_sleep_state; /* Previous sleep state ACPI_S0/1../5 */ ulong backup_mem; /* Backup memory address for S3 */ #endif +#ifdef CONFIG_FSP_VERSION2 + struct fsp_header *fsp_s_hdr; /* Pointer to FSP-S header */ +#endif }; #endif