]> git.sur5r.net Git - u-boot/commitdiff
video: fsl_dcu_fb: Fix DCU_MODE_BLEND_ITER setting
authorStefan Agner <stefan.agner@toradex.com>
Tue, 11 Apr 2017 05:42:12 +0000 (11:12 +0530)
committerAnatolij Gustschin <agust@denx.de>
Fri, 14 Apr 2017 11:56:24 +0000 (13:56 +0200)
DCU_LAYER_MAX_NUM is currently used for DCU_MODE_BLEND_ITER and it
actually overflows the maximum value of BLEND_ITER for Vybrid and
LS102XA. Fix this by using a default value of 2.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
drivers/video/fsl_dcu_fb.c

index c6ed3c40bcedda778fa9821f76eafca839f583f9..9fd9218c7b45a1bb54fb8c6c96d51c43ce91f621 100644 (file)
@@ -294,7 +294,7 @@ int fsl_dcu_init(unsigned int xres, unsigned int yres,
                    DCU_BGND_R(0) | DCU_BGND_G(0) | DCU_BGND_B(0));
 
        dcu_write32(&regs->mode,
-                   DCU_MODE_BLEND_ITER(DCU_LAYER_MAX_NUM) |
+                   DCU_MODE_BLEND_ITER(2) |
                    DCU_MODE_RASTER_EN);
 
        dcu_write32(&regs->threshold,