Commit 9a024948 authored by Bich Hemon's avatar Bich Hemon Committed by Vincent Abriou

drm/sti: adjust delay for DVO

Modify delay to display last pixel column on DVO
Signed-off-by: default avatarBich Hemon <bich.hemon@st.com>
Reviewed-by: default avatarBenjamin Gaignard <benjamin.gaignard@linaro.org>
Reviewed-by: default avatarVincent Abriou <vincent.abriou@st.com>
parent 0a1dc29d
...@@ -64,6 +64,9 @@ ...@@ -64,6 +64,9 @@
/* Delay introduced by the HDMI in nb of pixel */ /* Delay introduced by the HDMI in nb of pixel */
#define HDMI_DELAY (5) #define HDMI_DELAY (5)
/* Delay introduced by the DVO in nb of pixel */
#define DVO_DELAY (2)
/* delay introduced by the Arbitrary Waveform Generator in nb of pixels */ /* delay introduced by the Arbitrary Waveform Generator in nb of pixels */
#define AWG_DELAY_HD (-9) #define AWG_DELAY_HD (-9)
#define AWG_DELAY_ED (-8) #define AWG_DELAY_ED (-8)
...@@ -278,7 +281,7 @@ static void vtg_set_mode(struct sti_vtg *vtg, ...@@ -278,7 +281,7 @@ static void vtg_set_mode(struct sti_vtg *vtg,
vtg_set_hsync_vsync_pos(&sync[VTG_SYNC_ID_HDF - 1], AWG_DELAY_HD, mode); vtg_set_hsync_vsync_pos(&sync[VTG_SYNC_ID_HDF - 1], AWG_DELAY_HD, mode);
/* Set hsync and vsync position for DVO */ /* Set hsync and vsync position for DVO */
vtg_set_hsync_vsync_pos(&sync[VTG_SYNC_ID_DVO - 1], 0, mode); vtg_set_hsync_vsync_pos(&sync[VTG_SYNC_ID_DVO - 1], DVO_DELAY, mode);
/* Progam the syncs outputs */ /* Progam the syncs outputs */
for (i = 0; i < VTG_MAX_SYNC_OUTPUT ; i++) { for (i = 0; i < VTG_MAX_SYNC_OUTPUT ; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment