Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
	}

+1 −1
Original line number Diff line number Diff line
@@ -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)