summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/fsp/fsp_support.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-09-25 17:11:34 +0300
committerBin Meng <bmeng.cn@gmail.com>2019-10-08 08:57:31 +0300
commit46dd41fa5a8f08af903c7f0cfde9abfc16d7efe3 (patch)
tree9d884392cb92277b42355b153183580a3fcdad92 /arch/x86/include/asm/fsp/fsp_support.h
parentceec18491c665bccb6702ac1ba835ca75e5e58a9 (diff)
downloadu-boot-46dd41fa5a8f08af903c7f0cfde9abfc16d7efe3.tar.xz
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.h12
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.