gma config, port detection: Scatter Valid_Port initialization
We did overwrite most the default values for `Config.Valid_Port` anyway.
So move the few remaining defaults where they are visible together with
the other runtime settings.
Change-Id: I17df08de0aa1ffb303646ea564c100bb702407f5
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/libgfxinit/+/27047
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
diff --git a/common/haswell_shared/hw-gfx-gma-port_detect.adb b/common/haswell_shared/hw-gfx-gma-port_detect.adb
index be83bd5..50c14cd 100644
--- a/common/haswell_shared/hw-gfx-gma-port_detect.adb
+++ b/common/haswell_shared/hw-gfx-gma-port_detect.adb
@@ -135,10 +135,8 @@
else
DDI_Detected := True;
end if;
- Config.Valid_Port (To_HDMI_Port (Port)) :=
- Config.Valid_Port (To_HDMI_Port (Port)) and DDI_Detected;
- Config.Valid_Port (To_DP_Port (Port)) :=
- Config.Valid_Port (To_DP_Port (Port)) and DDI_Detected;
+ Config.Valid_Port (To_HDMI_Port (Port)) := DDI_Detected;
+ Config.Valid_Port (To_DP_Port (Port)) := DDI_Detected;
if DDI_Detected then
Registers.Unset_And_Set_Mask