Commit 4d703770 authored by Bich Hemon's avatar Bich Hemon Committed by Benjamin Gaignard

drm/sti: adjust delay for AWG

Compensate delay introduced by AWG IP during DE generation
Signed-off-by: default avatarBich Hemon <bich.hemon@st.com>
Reviewed-by: default avatarVincent ABRIOU <vincent.abriou@st.com>
parent 32e14592
......@@ -6,6 +6,8 @@
#include "sti_awg_utils.h"
#define AWG_DELAY (-5)
#define AWG_OPCODE_OFFSET 10
#define AWG_MAX_ARG 0x3ff
......@@ -125,7 +127,7 @@ static int awg_generate_line_signal(
val = timing->blanking_level;
ret |= awg_generate_instr(RPLSET, val, 0, 0, fwparams);
val = timing->trailing_pixels - 1;
val = timing->trailing_pixels - 1 + AWG_DELAY;
ret |= awg_generate_instr(SKIP, val, 0, 0, fwparams);
}
......
......@@ -65,7 +65,7 @@
#define HDMI_DELAY (5)
/* Delay introduced by the DVO in nb of pixel */
#define DVO_DELAY (2)
#define DVO_DELAY (7)
/* delay introduced by the Arbitrary Waveform Generator in nb of pixels */
#define AWG_DELAY_HD (-9)
......
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