Dinesh Gehlot has uploaded this change for review. ( https://review.coreboot.org/c/libgfxinit/+/82258?usp=email )
Change subject: gma tgl: Use dedicated config for early gfx init ......................................................................
gma tgl: Use dedicated config for early gfx init
This patch introduces a new config for graphics initialization in the romstage and updates relevant code to utilize it. Currently, the Alderlake platform supports early graphics initialization. The config should be updated as needed for future platforms.
Change-Id: If4bcd7bc771b055cd1a951deb667459260f014d9 Signed-off-by: Dinesh Gehlot digehlot@google.com --- M common/hw-gfx-gma-config.ads.template M common/tigerlake/hw-gfx-gma-power_and_clocks.adb 2 files changed, 4 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/libgfxinit refs/changes/58/82258/1
diff --git a/common/hw-gfx-gma-config.ads.template b/common/hw-gfx-gma-config.ads.template index 41fe590..13fe224 100644 --- a/common/hw-gfx-gma-config.ads.template +++ b/common/hw-gfx-gma-config.ads.template @@ -321,6 +321,9 @@ ----------- Combo Phy -------- Has_TGL_Buffer_Translations : <tglbool> := CPU_Tigerlake;
+ -----Early Graphics Init ----- + Romstage_GFX_Init : <tglbool> := CPU_Alderlake; + ----------------------------------------------------------------------------
Max_Pipe : <ilkvar> Pipe_Index := diff --git a/common/tigerlake/hw-gfx-gma-power_and_clocks.adb b/common/tigerlake/hw-gfx-gma-power_and_clocks.adb index 95c576c..6ef606b 100644 --- a/common/tigerlake/hw-gfx-gma-power_and_clocks.adb +++ b/common/tigerlake/hw-gfx-gma-power_and_clocks.adb @@ -328,7 +328,7 @@ Wait_Ready => True, Success => Success);
- if not Success and not Config.CPU_Alderlake then + if not Success and not Config.Romstage_GFX_Init then pragma Debug (Debug.Put_Line ("ERROR: PCODE not ready for frequency change.")); return;