aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/fsp/fsp_support.h
diff options
context:
space:
mode:
authorSimon Glass2019-09-25 08:11:30 -0600
committerBin Meng2019-10-08 13:54:01 +0800
commitb2d544a15d2edf8199e45e06c44b3e99ace906bc (patch)
treeace40793ea4223e4e00989a0afe0a9cd5e90e383 /arch/x86/include/asm/fsp/fsp_support.h
parente9de4a7cd31a08d7bd2afa842db5aca57b3a37cb (diff)
x86: Move common fsp functions into a common file
Some of this file can be shared between FSP1 and FSP2. Move it into a shared file. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/include/asm/fsp/fsp_support.h')
-rw-r--r--arch/x86/include/asm/fsp/fsp_support.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/x86/include/asm/fsp/fsp_support.h b/arch/x86/include/asm/fsp/fsp_support.h
index 215b0f7c9d5..8dea2e71ea9 100644
--- a/arch/x86/include/asm/fsp/fsp_support.h
+++ b/arch/x86/include/asm/fsp/fsp_support.h
@@ -131,4 +131,21 @@ int fsp_init_phase_pci(void);
*/
int fsp_scan_for_ram_size(void);
+/**
+ * fsp_prepare_mrc_cache() - Find the DRAM training data from the MRC cache
+ *
+ * @return pointer to data, or NULL if no cache or no data found in the cache
+ */
+void *fsp_prepare_mrc_cache(void);
+
+/**
+ * fsp_notify() - FSP notification wrapper function
+ *
+ * @fsp_hdr: Pointer to FSP information header
+ * @phase: FSP initialization phase defined in enum fsp_phase
+ *
+ * @return compatible status code with EFI_STATUS defined in PI spec
+ */
+u32 fsp_notify(struct fsp_header *fsp_hdr, u32 phase);
+
#endif