mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
drm/bridge: analogix_dp: Fix voltage_swing/pre_emphasis level calculation
Fixes: d7ad116fb3 ("drm/rockchip: analogix_dp: Add support for rk3568")
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I6da4a8c0c4b5486bac6bb054aee6535118e81f60
This commit is contained in:
@@ -716,10 +716,10 @@ void analogix_dp_set_lane_link_training(struct analogix_dp_device *dp)
|
||||
u8 training_lane = dp->link_train.training_lane[lane];
|
||||
u8 vs, pe;
|
||||
|
||||
vs = (training_lane >> DP_TRAIN_VOLTAGE_SWING_SHIFT) &
|
||||
DP_TRAIN_VOLTAGE_SWING_MASK;
|
||||
pe = (training_lane >> DP_TRAIN_PRE_EMPHASIS_SHIFT) &
|
||||
DP_TRAIN_PRE_EMPHASIS_MASK;
|
||||
vs = (training_lane & DP_TRAIN_VOLTAGE_SWING_MASK) >>
|
||||
DP_TRAIN_VOLTAGE_SWING_SHIFT;
|
||||
pe = (training_lane & DP_TRAIN_PRE_EMPHASIS_MASK) >>
|
||||
DP_TRAIN_PRE_EMPHASIS_SHIFT;
|
||||
phy_cfg.dp.voltage[lane] = vs;
|
||||
phy_cfg.dp.pre[lane] = pe;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user