dp training: Allow to adjust pre-emphasis during clock recovery
That's not demanded by the spec but there are sinks in the wild that
need it.
Change-Id: Ibef5236ca771e0e02beb4e76650ffb6974657846
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/21216
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
diff --git a/common/hw-gfx-dp_training.adb b/common/hw-gfx-dp_training.adb
index e7411d0..a2d00a7 100644
--- a/common/hw-gfx-dp_training.adb
+++ b/common/hw-gfx-dp_training.adb
@@ -257,8 +257,9 @@
-- According to DP spec, only change preemphasis during channel
-- equalization. What to do if sink requests it during clock recovery?
- -- Linux always accepts new values from the sink, we don't, for now.
- if Success and then (CR_Was_Done and not EQ_Done) then
+ -- Linux always accepts new values from the sink, we too, now: There
+ -- are sinks in the wild that need this.
+ if Success and not EQ_Done then
Train_Set.Pre_Emph :=
DP_Info.Max_Requested_Emph (Status, Link);
if Train_Set.Pre_Emph > Max_Pre_Emph (Port, Train_Set)