diff options
author | Bich Hemon <bich.hemon@st.com> | 2016-02-02 16:30:13 +0300 |
---|---|---|
committer | Vincent Abriou <vincent.abriou@st.com> | 2016-02-26 12:06:17 +0300 |
commit | 9a0249485ab8a40f5e2c2530af0e5824c81dda4a (patch) | |
tree | 3067fdcc7fdcf4c439ac242c312108c1de22dba5 /drivers/gpu/drm/sti/sti_vtg.c | |
parent | 0a1dc29db379cb05b784bfd7e4628da02f7d4d83 (diff) | |
download | linux-9a0249485ab8a40f5e2c2530af0e5824c81dda4a.tar.xz |
drm/sti: adjust delay for DVO
Modify delay to display last pixel column on DVO
Signed-off-by: Bich Hemon <bich.hemon@st.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Reviewed-by: Vincent Abriou <vincent.abriou@st.com>
Diffstat (limited to 'drivers/gpu/drm/sti/sti_vtg.c')
-rw-r--r-- | drivers/gpu/drm/sti/sti_vtg.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sti/sti_vtg.c b/drivers/gpu/drm/sti/sti_vtg.c index 313d7033eb4c..32c7986b63ab 100644 --- a/drivers/gpu/drm/sti/sti_vtg.c +++ b/drivers/gpu/drm/sti/sti_vtg.c @@ -64,6 +64,9 @@ /* Delay introduced by the HDMI in nb of pixel */ #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 */ #define AWG_DELAY_HD (-9) #define AWG_DELAY_ED (-8) @@ -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); /* 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 */ for (i = 0; i < VTG_MAX_SYNC_OUTPUT ; i++) { |