From 10497b36a8af5a10c2f705d37a61f4bab5f8e059 Mon Sep 17 00:00:00 2001 From: Justin Waters Date: Wed, 28 May 2008 14:46:01 -0400 Subject: MXCFB: Add flags to specify polarity of different signals The MXCFB module allows you to specify the polarity of a number of signals. This adds the ability to specify the polarity of the shift clock, line pulse, and first line marker signals. Signed-off-by: Justin Waters --- drivers/video/mxc/mx2fb.c | 3 +++ include/asm-arm/arch-mxc/mxcfb.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/video/mxc/mx2fb.c b/drivers/video/mxc/mx2fb.c index 13721e0b056e..5231ed5f4513 100644 --- a/drivers/video/mxc/mx2fb.c +++ b/drivers/video/mxc/mx2fb.c @@ -1066,6 +1066,9 @@ static void _update_lcdc(struct fb_info *info) pcr |= (var->sync & FB_SYNC_CLK_INVERT) ? 0x01000000 : 0; pcr |= (var->sync & FB_SYNC_SHARP_MODE) ? 0x00000040 : 0; pcr |= (var->sync & FB_SYNC_OE_ACT_HIGH) ? 0 : 0x00100000; + pcr |= (var->sync & FB_SYNC_FLM_ACT_LOW) ? 0x00800000 : 0; + pcr |= (var->sync & FB_SYNC_LP_ACT_LOW) ? 0x00400000 : 0; + pcr |= (var->sync & FB_SYNC_CLK_POS_EDGE) ? 0x00200000 : 0; __raw_writel(pcr, LCDC_REG(LCDC_LPCR)); /* Horizontal and vertical configuration register */ diff --git a/include/asm-arm/arch-mxc/mxcfb.h b/include/asm-arm/arch-mxc/mxcfb.h index 4a79c488f27e..33f5b0354a98 100644 --- a/include/asm-arm/arch-mxc/mxcfb.h +++ b/include/asm-arm/arch-mxc/mxcfb.h @@ -29,6 +29,9 @@ #define FB_SYNC_CLK_IDLE_EN 0x10000000 #define FB_SYNC_SHARP_MODE 0x08000000 #define FB_SYNC_SWAP_RGB 0x04000000 +#define FB_SYNC_FLM_ACT_LOW 0x01000000 +#define FB_SYNC_LP_ACT_LOW 0x00800000 +#define FB_SYNC_CLK_POS_EDGE 0x00400000 struct mxcfb_gbl_alpha { int enable; -- cgit v1.2.3