From 84428f72d02583f1f2a7bf4470bace5d46c1bc4d Mon Sep 17 00:00:00 2001 From: Tim Wawrzynczak Date: Tue, 14 Sep 2021 13:59:33 -0600 Subject: drivers/intel/fsp2_0: Pass orientation to fsp_report_framebuffer_info Instead of always passing LB_FB_ORIENTATION_NORMAL, allow the chipsets implementing the callback to pass in an orientation. BUG=b:194967458 BRANCH=dedede Change-Id: I4aacab9449930a75aca9d68bf30d019f86035405 Signed-off-by: Tim Wawrzynczak Reviewed-on: https://review.coreboot.org/c/coreboot/+/57647 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh Reviewed-by: Karthik Ramasubramanian --- src/soc/intel/common/block/graphics/graphics.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/soc/intel') diff --git a/src/soc/intel/common/block/graphics/graphics.c b/src/soc/intel/common/block/graphics/graphics.c index 85b7124190..d9daaaf54a 100644 --- a/src/soc/intel/common/block/graphics/graphics.c +++ b/src/soc/intel/common/block/graphics/graphics.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -57,7 +58,9 @@ static void gma_init(struct device *const dev) * Kconfig to perform GFX initialization. */ if (CONFIG(RUN_FSP_GOP)) { - fsp_report_framebuffer_info(graphics_get_memory_base()); + const struct soc_intel_common_config *config = chip_get_common_soc_structure(); + fsp_report_framebuffer_info(graphics_get_memory_base(), + config->panel_orientation); return; } -- cgit v1.2.3