Skip to content

Commit cd58061

Browse files
Sandor YuNitin Garg
authored andcommitted
MLK-10117-4: mxsfb: Add lcdif register config in enable panel function
Lcdif register configuration will lost in dispmix power off, so register should been configured again when panel power up. Signed-off-by: Sandor Yu <R01008@freescale.com>
1 parent 6416f17 commit cd58061

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/video/mxsfb.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This code is based on:
55
* Author: Vitaly Wool <vital@embeddedalley.com>
66
*
7-
* Copyright 2008-2014 Freescale Semiconductor, Inc. All Rights Reserved.
7+
* Copyright 2008-2015 Freescale Semiconductor, Inc. All Rights Reserved.
88
* Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
99
*
1010
* This program is free software; you can redistribute it and/or
@@ -239,6 +239,7 @@ static const struct mxsfb_devdata mxsfb_devdata[] = {
239239

240240
static int mxsfb_map_videomem(struct fb_info *info);
241241
static int mxsfb_unmap_videomem(struct fb_info *info);
242+
static int mxsfb_set_par(struct fb_info *fb_info);
242243

243244
/* enable lcdif axi clock */
244245
static inline void clk_enable_axi(struct mxsfb_info *host)
@@ -515,6 +516,9 @@ static void mxsfb_enable_controller(struct fb_info *fb_info)
515516
/* Clean soft reset and clock gate bit if it was enabled */
516517
writel(CTRL_SFTRST | CTRL_CLKGATE, host->base + LCDC_CTRL + REG_CLR);
517518

519+
/* reconfigure the lcdif after */
520+
mxsfb_set_par(&host->fb_info);
521+
518522
writel(CTRL2_OUTSTANDING_REQS__REQ_16,
519523
host->base + LCDC_V4_CTRL2 + REG_SET);
520524

0 commit comments

Comments
 (0)