OMAPDSS: configure WB mflag threshold
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 4 Nov 2015 15:10:50 +0000 (17:10 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 29 Dec 2015 09:06:27 +0000 (11:06 +0200)
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>
drivers/video/fbdev/omap2/dss/dispc.c

index 22b6e0f3e657ef14411bf5ee05aff2edfadaba86..3cd78dcfefc527a75502299c2bd80b3c285fb051 100644 (file)
@@ -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,
This page took 0.027655 seconds and 5 git commands to generate.