Skip to content

Commit 1d2df55

Browse files
Zheng Yangrkhuangtao
authored andcommitted
drm: bridge: dw-hdmi: fix VP_PR_CD pixel repetition factor configuration
The configured value sets H13T PHY PLL to multiply pixel clock by the factor in order to obtain the desired repetition clock. For the CEA modes some are already defined with pixel repetition in the input video. So for CEA modes this shall be always 0. Change-Id: Iea4a00247f25c134dbd67ba77c00eb4393622385 Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
1 parent 27b2871 commit 1d2df55

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

drivers/gpu/drm/bridge/dw-hdmi.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,11 +1141,8 @@ static void hdmi_video_packetize(struct dw_hdmi *hdmi)
11411141
}
11421142

11431143
/* set the packetizer registers */
1144-
val = ((color_depth << HDMI_VP_PR_CD_COLOR_DEPTH_OFFSET) &
1145-
HDMI_VP_PR_CD_COLOR_DEPTH_MASK) |
1146-
((hdmi_data->pix_repet_factor <<
1147-
HDMI_VP_PR_CD_DESIRED_PR_FACTOR_OFFSET) &
1148-
HDMI_VP_PR_CD_DESIRED_PR_FACTOR_MASK);
1144+
val = (color_depth << HDMI_VP_PR_CD_COLOR_DEPTH_OFFSET) &
1145+
HDMI_VP_PR_CD_COLOR_DEPTH_MASK;
11491146
hdmi_writeb(hdmi, val, HDMI_VP_PR_CD);
11501147

11511148
hdmi_modb(hdmi, HDMI_VP_STUFF_PR_STUFFING_STUFFING_MODE,

0 commit comments

Comments
 (0)