MLK-17140-2: drm: imx: dcss: Change CTXLD trigger values
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Fri, 8 Dec 2017 12:42:05 +0000 (14:42 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:51:01 +0000 (14:51 -0500)
After activating the PM QoS, the old triggers didn't work anymore. Also,
this will remove a hardcoded value that might not work for all
resolutions.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/imx/dcss/dcss-dtg.c

index 0291f46..9fa5614 100644 (file)
@@ -249,13 +249,7 @@ void dcss_dtg_sync_set(struct dcss_soc *dcss, struct videomode *vm)
        dtg->dis_ulc_x = dis_ulc_x;
        dtg->dis_ulc_y = dis_ulc_y;
 
-       /*
-        * FIXME: the context loader trigger values should not be hard-coded,
-        * but these values proved to provide the best user experience. Planes
-        * that use RGB pixel formats (more bandwidth) will not disappear
-        * anymore.
-        */
-       dcss_dtg_write(dtg, 0x0008000a, DCSS_DTG_TC_CTXLD);
+       dcss_dtg_write(dtg, dis_ulc_y, DCSS_DTG_TC_CTXLD);
 }
 EXPORT_SYMBOL(dcss_dtg_sync_set);