diff options
author | Justin Waters <justin.waters@timesys.com> | 2008-05-28 14:46:01 -0400 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2008-05-28 14:46:01 -0400 |
commit | 10497b36a8af5a10c2f705d37a61f4bab5f8e059 (patch) | |
tree | 782733870c4ace4e4ed2a5e3aec80c24982cd67d | |
parent | 7da69f2f2932eebdfec2f670b76b2029e4909e24 (diff) |
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 <justin.waters@timesys.com>
-rw-r--r-- | drivers/video/mxc/mx2fb.c | 3 | ||||
-rw-r--r-- | include/asm-arm/arch-mxc/mxcfb.h | 3 |
2 files changed, 6 insertions, 0 deletions
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; |