From 32074149f702d988e07753b5ff5633dbd0e3409c Mon Sep 17 00:00:00 2001 From: robbie zhang Date: Thu, 1 Oct 2015 16:37:58 -0700 Subject: fsp/intel common: Add support for Gfx PEIM (AKA GOP) This patch provides the lb_framebuffer() for coreboot table with fsp gop usage, add Igd Opregion register defines, and update the UPD naming following fsp. BRANCH=none BUG=chrome-os-partner:44559 TEST=Built and boot on kunimitsu/glados. Change-Id: I9cf9d991eb09d698e7a78323cd855c4c99b55eca Signed-off-by: Patrick Georgi Original-Commit-Id: cd6834057cca60716bc0e24cfc2cd60fed02be7a Original-Change-Id: I64987e393c39a7cc1084edf59e7ca51b8c5ea743 Original-Signed-off-by: robbie zhang Original-Reviewed-on: https://chromium-review.googlesource.com/303539 Original-Commit-Ready: Robbie Zhang Original-Tested-by: Robbie Zhang Original-Reviewed-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/12141 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/drivers/intel/fsp1_1/fsp_gop.c | 3 ++- src/drivers/intel/fsp1_1/include/fsp/gop.h | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/drivers') diff --git a/src/drivers/intel/fsp1_1/fsp_gop.c b/src/drivers/intel/fsp1_1/fsp_gop.c index c5b515c1b3..14a7650b5d 100644 --- a/src/drivers/intel/fsp1_1/fsp_gop.c +++ b/src/drivers/intel/fsp1_1/fsp_gop.c @@ -17,6 +17,7 @@ * Foundation, Inc. */ +#include #include #include #include @@ -61,7 +62,7 @@ const optionrom_vbt_t *fsp_get_vbt(uint32_t *vbt_len) return vbt.data; } -void fsp_gop_framebuffer(struct lb_header *header) +void lb_framebuffer(struct lb_header *header) { struct lb_framebuffer *framebuffer; framebuffer = (struct lb_framebuffer *)lb_new_record(header); diff --git a/src/drivers/intel/fsp1_1/include/fsp/gop.h b/src/drivers/intel/fsp1_1/include/fsp/gop.h index 14bada6f96..78d2878917 100644 --- a/src/drivers/intel/fsp1_1/include/fsp/gop.h +++ b/src/drivers/intel/fsp1_1/include/fsp/gop.h @@ -23,11 +23,9 @@ /* GOP support */ #if IS_ENABLED(CONFIG_GOP_SUPPORT) -#include #include const optionrom_vbt_t *fsp_get_vbt(uint32_t *vbt_len); -void fsp_gop_framebuffer(struct lb_header *header); #endif /* CONFIG_GOP_SUPPORT */ #endif /* _FSP_GOP_H_ */ -- cgit v1.2.3