summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@systec-electronic.com>2010-07-20 08:55:40 +0200
committerAnatolij Gustschin <agust@denx.de>2010-09-25 15:22:51 +0200
commitcdfcedbf250ba2ec01b2555cffde83e9947e9fbf (patch)
tree8c4d372bcb71a1f801d23a479c803f67f0d214f5 /drivers/video
parent55b05237b972e5bed8b9d29804bbfcbc9c5d4a55 (diff)
downloadu-boot-imx-cdfcedbf250ba2ec01b2555cffde83e9947e9fbf.zip
u-boot-imx-cdfcedbf250ba2ec01b2555cffde83e9947e9fbf.tar.gz
u-boot-imx-cdfcedbf250ba2ec01b2555cffde83e9947e9fbf.tar.bz2
atmel_lcd: Allow contrast polarity to be either positive or negative
Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/atmel_lcdfb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c
index db86763..c02ffd8 100644
--- a/drivers/video/atmel_lcdfb.c
+++ b/drivers/video/atmel_lcdfb.c
@@ -143,8 +143,9 @@ void lcd_ctrl_init(void *lcdbase)
/* Set contrast */
value = ATMEL_LCDC_PS_DIV8 |
- ATMEL_LCDC_POL_POSITIVE |
ATMEL_LCDC_ENA_PWMENABLE;
+ if (!panel_info.vl_cont_pol_low)
+ value |= ATMEL_LCDC_POL_POSITIVE;
lcdc_writel(panel_info.mmio, ATMEL_LCDC_CONTRAST_CTR, value);
lcdc_writel(panel_info.mmio, ATMEL_LCDC_CONTRAST_VAL, ATMEL_LCDC_CVAL_DEFAULT);