summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mxs
diff options
context:
space:
mode:
authorGregory CLEMENT <gregory.clement@free-electrons.com>2011-01-21 12:37:51 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-01-21 15:22:45 +0100
commit286117d9379acc694367e9ca37c759ee06997237 (patch)
treedd1a8a261932b983bfaac556c4ac7e46a7f69de3 /arch/arm/mach-mxs
parentbd56e41d1912dcedd36549ee032b2dd7631fa6af (diff)
downloadbarebox-286117d9379acc694367e9ca37c759ee06997237.tar.gz
barebox-286117d9379acc694367e9ca37c759ee06997237.tar.xz
fb i.MX23/28: Add the reset control of LCD
Video controller of STM allow to control the reset bit of an external LCD controller. When reset_lcd is set, CTRL1_RESET bit is used to enable and disable LCD. Handle USE_LCD_RESET as a flag in imx_fb_platformdata. Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mxs')
-rw-r--r--arch/arm/mach-mxs/include/mach/fb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/include/mach/fb.h b/arch/arm/mach-mxs/include/mach/fb.h
index 2b61dee2c7..2b6825f7b5 100644
--- a/arch/arm/mach-mxs/include/mach/fb.h
+++ b/arch/arm/mach-mxs/include/mach/fb.h
@@ -31,6 +31,8 @@
/** swap RGB to BGR */
#define FB_SYNC_SWAP_RGB (1 << 31)
+#define USE_LCD_RESET 1
+
struct imx_fb_platformdata {
struct fb_videomode *mode_list;
unsigned mode_cnt;
@@ -42,6 +44,7 @@ struct imx_fb_platformdata {
void *fixed_screen; /**< if != NULL use this as framebuffer memory */
unsigned fixed_screen_size; /**< framebuffer memory size for fixed_screen */
+ unsigned flags;
void (*enable)(int enable); /**< hook to enable backlight */
};