x86: fsp: Allow remembering the location of FSP-S
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:42:21 +0000 (21:42 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:17 +0000 (11:44 +0800)
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 <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/include/asm/global_data.h

index 190b604e0f795f3b5e1c83dcc749b72d2e2630f3..f4c1839104e15ea5ec7952bb2110c93dff7ce29e 100644 (file)
@@ -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