All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sanchayan Maity <maitysanchayan@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 4/6] video: fsl_dcu_fb: Fix DCU_MODE_BLEND_ITER setting
Date: Tue, 11 Apr 2017 11:12:12 +0530	[thread overview]
Message-ID: <6676f08c219465c71d82d7530cf27edae682536c.1491887884.git.maitysanchayan@gmail.com> (raw)
In-Reply-To: <cover.1491887884.git.maitysanchayan@gmail.com>

From: Stefan Agner <stefan.agner@toradex.com>

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/fsl_dcu_fb.c b/drivers/video/fsl_dcu_fb.c
index a922a91fb2..6e65d84903 100644
--- a/drivers/video/fsl_dcu_fb.c
+++ b/drivers/video/fsl_dcu_fb.c
@@ -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,
-- 
2.12.2

  parent reply	other threads:[~2017-04-11  5:42 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-11  5:42 [U-Boot] [PATCH v3 0/6] Introduce DCU support for Vybrid Sanchayan Maity
2017-04-11  5:42 ` [U-Boot] [PATCH v3 1/6] Convert CONFIG_FSL_DCU_FB to Kconfig Sanchayan Maity
2017-04-11 16:58   ` Stefan Agner
2017-04-12  7:18   ` Alison Wang
2017-04-11  5:42 ` [U-Boot] [PATCH v3 2/6] video: fsl_dcu_fb: fix framebuffer to the end of memory Sanchayan Maity
2017-04-11  5:42 ` [U-Boot] [PATCH v3 3/6] video: fsl_dcu_fb: Enable pixel clock after initialization Sanchayan Maity
2017-04-12  7:47   ` Alison Wang
2017-04-11  5:42 ` Sanchayan Maity [this message]
2017-04-11  5:42 ` [U-Boot] [PATCH v3 5/6] video: fsl_dcu_fb: add additional modes for DCU Sanchayan Maity
2017-04-12  7:57   ` Alison Wang
2017-04-11  5:42 ` [U-Boot] [PATCH v3 6/6] board: toradex: colibri_vf: Add DCU support for Colibri Vybrid Sanchayan Maity
2017-04-12 16:14   ` Stefano Babic
2017-04-12 17:53     ` Stefan Agner
2017-04-14 13:37       ` Anatolij Gustschin
2017-04-11 16:59 ` [U-Boot] [PATCH v3 0/6] Introduce DCU support for Vybrid Stefan Agner
2017-04-12  8:45   ` Stefano Babic
2017-04-14 13:39 ` Anatolij Gustschin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6676f08c219465c71d82d7530cf27edae682536c.1491887884.git.maitysanchayan@gmail.com \
    --to=maitysanchayan@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.