summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2015-06-11 09:01:53 +0200
committerStefan Agner <stefan.agner@toradex.com>2015-06-11 09:01:53 +0200
commit62c593f704e0b2f05db5b4e53fa3911a86f6f575 (patch)
tree86f1e56213e2ca5269a186682b7aacba675d74c7
parente4c61c14cbbaf989ab7d911d68e596f9d98d94d7 (diff)
video: fsl-dcu-fb: fix layer initialization
Fix layer initialization by also resetting the first Layer index 0. Do not transfer the registers just yet, since this would probably put the controller in test mode.
-rw-r--r--drivers/video/fbdev/fsl-dcu-fb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/fbdev/fsl-dcu-fb.c b/drivers/video/fbdev/fsl-dcu-fb.c
index bb802c9..d442c41 100644
--- a/drivers/video/fbdev/fsl-dcu-fb.c
+++ b/drivers/video/fbdev/fsl-dcu-fb.c
@@ -724,7 +724,7 @@ static void reset_layers(struct dcu_fb_data *dcufb)
{
int i;
- for (i = 1; i < DCU_TOTAL_LAYER_NUM; i++) {
+ for (i = 0; i < DCU_TOTAL_LAYER_NUM; i++) {
writel(0, dcufb->reg_base + DCU_CTRLDESCLN_1(i));
writel(0, dcufb->reg_base + DCU_CTRLDESCLN_2(i));
writel(0, dcufb->reg_base + DCU_CTRLDESCLN_3(i));
@@ -735,7 +735,6 @@ static void reset_layers(struct dcu_fb_data *dcufb)
writel(0, dcufb->reg_base + DCU_CTRLDESCLN_8(i));
writel(0, dcufb->reg_base + DCU_CTRLDESCLN_9(i));
}
- writel(DCU_UPDATE_MODE_READREG, dcufb->reg_base + DCU_UPDATE_MODE);
}
static int fsl_dcu_open(struct fb_info *info, int user)