Nico Huber has uploaded this change for review. ( https://review.coreboot.org/c/libgfxinit/+/83604?usp=email )
Change subject: gma config: Introduce `First_/Last_TC_Port' ......................................................................
gma config: Introduce `First_/Last_TC_Port'
Similar to `Last_Digital_Port', note the first and last Type-C port of the configured platform. Odd enough, this is at most TC1..TC4 on all known Tiger Lake SKUs. Even though the TGL PRM refers to six TC ports.
It seems ADL uses TC3..TC6, hence we introduce the `First_' config right away.
Change-Id: I0114e4070a20ae4218f41faf750ad59283e5dc3d Signed-off-by: Nico Huber nico.huber@secunet.com --- M common/hw-gfx-gma-config.ads.template 1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/libgfxinit refs/changes/04/83604/1
diff --git a/common/hw-gfx-gma-config.ads.template b/common/hw-gfx-gma-config.ads.template index 5413937..a67dc78 100644 --- a/common/hw-gfx-gma-config.ads.template +++ b/common/hw-gfx-gma-config.ads.template @@ -320,6 +320,11 @@ Last_Digital_Port : <hswsklvar> Digital_Port := (if Has_DDI_E then DIGI_E else DIGI_C);
+ First_TC_Port : constant TGL_Digital_Port := DDI_TC1; + Last_TC_Port : constant TGL_Digital_Port := + (if not Tigerlake_On then DIGI_E -- Makes First_TC_Port..Last_TC_Port empty. + else DDI_TC4); + ----------------------------------------------------------------------------
type FDI_Per_Port is array (Port_Type) of Boolean;