diff options
author | Simon Glass <sjg@chromium.org> | 2019-09-25 08:11:34 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2019-10-08 13:57:31 +0800 |
commit | 46dd41fa5a8f08af903c7f0cfde9abfc16d7efe3 (patch) | |
tree | 9d884392cb92277b42355b153183580a3fcdad92 /arch/x86/include/asm/fsp/fsp_support.h | |
parent | ceec18491c665bccb6702ac1ba835ca75e5e58a9 (diff) |
x86: fsp: Add access to variable MRC data
With FSP2 the non-volatile storage used by the FSP to init memory can be
split into a fixed piece (determined at compile time) and a variable piece
(determined at run time). Add support for reading the latter.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-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.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/include/asm/fsp/fsp_support.h b/arch/x86/include/asm/fsp/fsp_support.h index 8dea2e71ea..4ac27d26f5 100644 --- a/arch/x86/include/asm/fsp/fsp_support.h +++ b/arch/x86/include/asm/fsp/fsp_support.h @@ -104,6 +104,18 @@ u32 fsp_get_tseg_reserved_mem(const void *hob_list, u32 *len); void *fsp_get_nvs_data(const void *hob_list, u32 *len); /** + * fsp_get_var_nvs_data() - get FSP variable Non-volatile Storage HOB buffer + * + * @hob_list: A HOB list pointer. + * @len: A pointer to the NVS data buffer length. + * If the HOB is located, the length will be updated. + * + * @return NULL: Failed to find the NVS HOB. + * @return others: FSP NVS data buffer pointer. + */ +void *fsp_get_var_nvs_data(const void *hob_list, u32 *len); + +/** * fsp_get_graphics_info() - retrieves graphics information. * * @hob_list: A HOB list pointer. |