From 629621160710f8862e5cac08f554917783795a89 Mon Sep 17 00:00:00 2001 From: Tim Wawrzynczak Date: Fri, 10 Sep 2021 10:14:38 -0600 Subject: [PATCH] soc/intel/common: Add panel_orientation field to common chip config When the FSP driver fills out framebuffer information for the coreboot tables, it assumes the orientation is always normal. This patch provides a field for a mainboard to override the panel orientation from the default (LB_FB_ORIENTATION_NORMAL). Later patches will have the FSP driver use this value when filling out framebuffer information. BUG=b:194967458 BRANCH=dedede Change-Id: I559b3d6a076112a1c020ce5e296430d7ccba9ee4 Signed-off-by: Tim Wawrzynczak Reviewed-on: https://review.coreboot.org/c/coreboot/+/57558 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh --- src/soc/intel/common/block/include/intelblocks/cfg.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/soc/intel/common/block/include/intelblocks/cfg.h b/src/soc/intel/common/block/include/intelblocks/cfg.h index ab9c9556b1..131d70d71c 100644 --- a/src/soc/intel/common/block/include/intelblocks/cfg.h +++ b/src/soc/intel/common/block/include/intelblocks/cfg.h @@ -3,6 +3,7 @@ #ifndef SOC_INTEL_COMMON_BLOCK_CFG_H #define SOC_INTEL_COMMON_BLOCK_CFG_H +#include #include #include #include @@ -24,6 +25,7 @@ struct soc_intel_common_config { /* PCH Thermal Trip Temperature in deg C */ uint8_t pch_thermal_trip; struct mmc_dll_params emmc_dll; + enum lb_fb_orientation panel_orientation; }; /* This function to retrieve soc config structure required by common code */