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 <twawrzynczak@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57647
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
This commit is contained in:
Tim Wawrzynczak
2021-09-14 13:59:33 -06:00
committed by Felix Held
parent 6296211607
commit 84428f72d0
4 changed files with 11 additions and 5 deletions

View File

@@ -10,6 +10,7 @@
#include <drivers/intel/gma/i915.h>
#include <drivers/intel/gma/libgfxinit.h>
#include <drivers/intel/gma/opregion.h>
#include <intelblocks/cfg.h>
#include <intelblocks/graphics.h>
#include <fsp/graphics.h>
#include <soc/pci_devs.h>
@@ -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;
}