summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/sti/sti_awg_utils.c
diff options
context:
space:
mode:
authorBich Hemon <bich.hemon@st.com>2016-03-15 19:11:14 +0300
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>2016-06-27 11:18:25 +0300
commit4d7037708a357f5dbe9a51cc1aacf4dcb65b7192 (patch)
tree762522b49a5cabcd9c1fb8398ccd71b694fce876 /drivers/gpu/drm/sti/sti_awg_utils.c
parent32e145926b7936886de8563cc727224cdc048ffe (diff)
downloadlinux-4d7037708a357f5dbe9a51cc1aacf4dcb65b7192.tar.xz
drm/sti: adjust delay for AWG
Compensate delay introduced by AWG IP during DE generation Signed-off-by: Bich Hemon <bich.hemon@st.com> Reviewed-by: Vincent ABRIOU <vincent.abriou@st.com>
Diffstat (limited to 'drivers/gpu/drm/sti/sti_awg_utils.c')
-rw-r--r--drivers/gpu/drm/sti/sti_awg_utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sti/sti_awg_utils.c b/drivers/gpu/drm/sti/sti_awg_utils.c
index a516eb869f6f..2da7d6866d5d 100644
--- a/drivers/gpu/drm/sti/sti_awg_utils.c
+++ b/drivers/gpu/drm/sti/sti_awg_utils.c
@@ -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);
}