aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/lib
diff options
context:
space:
mode:
authorBin Meng2017-08-15 22:41:52 -0700
committerBin Meng2017-09-16 14:57:44 +0800
commit4ff333b7dd0f0d541225f87ebb2523beb7eefcad (patch)
treeef0df116b69a0d168aad46c3c030a29f20a628fd /arch/x86/lib
parentbb737ced7fc8c6d49554fb431971df87720b0e00 (diff)
x86: fsp: Add FSP_GRAPHICS_INFO_HOB
This adds a new HOB type for graphics information introduced in FSP spec 1.1. When graphics capability is included in FSP and enabled, FSP produces an FSP_GRAPHICS_INFO_HOB as described in the EFI PI specification which provides information about the graphics mode and framebuffer. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r--arch/x86/lib/fsp/fsp_support.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/lib/fsp/fsp_support.c b/arch/x86/lib/fsp/fsp_support.c
index ab8340c8715..e0c49be6357 100644
--- a/arch/x86/lib/fsp/fsp_support.c
+++ b/arch/x86/lib/fsp/fsp_support.c
@@ -425,3 +425,10 @@ void *fsp_get_bootloader_tmp_mem(const void *hob_list, u32 *len)
return fsp_get_guid_hob_data(hob_list, len, (struct efi_guid *)&guid);
}
+
+void *fsp_get_graphics_info(const void *hob_list, u32 *len)
+{
+ const struct efi_guid guid = FSP_GRAPHICS_INFO_HOB_GUID;
+
+ return fsp_get_guid_hob_data(hob_list, len, (struct efi_guid *)&guid);
+}