summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLajos Molnar <lajos@ti.com>2011-07-27 20:57:10 -0500
committerAndy Green <andy.green@linaro.org>2012-08-01 23:25:35 +0800
commit16a2aa2aecd500010e5c7d9cc19be0d5ef24f8ce (patch)
tree850e9a7e39063db7b9b1336faad75b341a3abbdc
parentd93b6dd3a1b8aeb8c5d4fd46ff98bfa2b7bac9bf (diff)
OMAPDSS: DISPC: Fix buffer underflow err on downscaling
When downscaling heavily, FIFO buffers may underflow at the first line. Set DMA preload value to the high threshold to avoid this. Change-Id: Ic791f48a252d82b2ba514f16c9e824d25e96fa44 Signed-off-by: Lajos Molnar <lajos@ti.com> Signed-off-by: Varadarajan, Charulatha <charu@ti.com>
-rw-r--r--drivers/video/omap2/dss/dispc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
index 157826153d9..486ae071e19 100644
--- a/drivers/video/omap2/dss/dispc.c
+++ b/drivers/video/omap2/dss/dispc.c
@@ -1073,6 +1073,9 @@ void dispc_ovl_set_fifo_threshold(enum omap_plane plane, u32 low, u32 high)
hi_start, hi_end) * unit,
low * unit, high * unit);
+ /* preload to high threshold to avoid FIFO underflow */
+ dispc_write_reg(DISPC_OVL_PRELOAD(plane), min(high, 0xfffu));
+
dispc_write_reg(DISPC_OVL_FIFO_THRESHOLD(plane),
FLD_VAL(high, hi_start, hi_end) |
FLD_VAL(low, lo_start, lo_end));