mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 07:13:34 +00:00
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>
This commit is contained in:
parent
65e116e173
commit
ecb0b366af
1 changed files with 19 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue