diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-11-04 17:10:50 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-12-29 11:06:27 +0200 |
commit | ecb0b366af3fb435b877d5648b363e069e97a754 (patch) | |
tree | 53c818e51143e2c9c4eb0c555992af35b77b2f21 /drivers/video | |
parent | 65e116e17327bce9b75adb02574a6edf126f7ef2 (diff) | |
download | linux-ecb0b366af3fb435b877d5648b363e069e97a754.tar.gz linux-ecb0b366af3fb435b877d5648b363e069e97a754.tar.bz2 linux-ecb0b366af3fb435b877d5648b363e069e97a754.zip |
OMAPDSS: configure WB mflag threshold
Mflag thresholds for all pipelines are set in dispc_init_mflag(), but we
are missing that for WB pipeline. Add WB configuration.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/omap2/dss/dispc.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/video/fbdev/omap2/dss/dispc.c b/drivers/video/fbdev/omap2/dss/dispc.c index 22b6e0f3e657..3cd78dcfefc5 100644 --- a/drivers/video/fbdev/omap2/dss/dispc.c +++ b/drivers/video/fbdev/omap2/dss/dispc.c @@ -1384,6 +1384,25 @@ static void dispc_init_mflag(void) dispc_ovl_set_mflag_threshold(i, low, high); } + + if (dispc.feat->has_writeback) { + u32 size = dispc_ovl_get_fifo_size(OMAP_DSS_WB); + u32 unit = dss_feat_get_buffer_size_unit(); + u32 low, high; + + dispc_ovl_set_mflag(OMAP_DSS_WB, true); + + /* + * Simulation team suggests below thesholds: + * HT = fifosize * 5 / 8; + * LT = fifosize * 4 / 8; + */ + + low = size * 4 / 8 / unit; + high = size * 5 / 8 / unit; + + dispc_ovl_set_mflag_threshold(OMAP_DSS_WB, low, high); + } } static void dispc_ovl_set_fir(enum omap_plane plane, |