gma adl: Implement power-domain handling
The ADL-P power domains follow a different pattern. So far all
power *wells* (and their power gates, PG) were numbered and had
to be enabled in linear order, now we have a tree:
PW0
|
--PW1--
/ \
PWA --PW2--
/ | \
PWB PWC PWD
Where PWA .. PWD are required for the display pipelines A .. D.
Also, there are power domains for five combo DDIs now, but only
four TC DDIs.
This is based on work by several authors that was originally
squashed into another commit:
https://review.coreboot.org/c/libgfxinit/+/67801/
Change-Id: I08aed1d2cab84108bb70a5dc62c1bb95d4f1d423
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/libgfxinit/+/509
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Thomas Heijligen <src@posteo.de>
Tested-by: Ada SPARK <gnatbot@sourcearcade.org>
diff --git a/common/tigerlake/Makefile.inc b/common/tigerlake/Makefile.inc
index 3d42b28..fcc4c24 100644
--- a/common/tigerlake/Makefile.inc
+++ b/common/tigerlake/Makefile.inc
@@ -23,5 +23,7 @@
gfxinit-y += tgl/hw-gfx-gma-power_domains.ads
gfxinit-y += tgl/hw-gfx-gma-connectors-tc-ownership.adb
else ifneq ($(filter AlderlakeP,$(CONFIG_GFX_GMA_GENERATION)),)
+gfxinit-y += xelpd/hw-gfx-gma-power_domains.adb
+gfxinit-y += xelpd/hw-gfx-gma-power_domains.ads
gfxinit-y += xelpd/hw-gfx-gma-connectors-tc-ownership.adb
endif