aboutsummaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2010-10-05 14:31:48 +0200
committerWolfgang Denk <wd@denx.de>2010-10-05 14:31:48 +0200
commitbbf2abc0f5a5be0b8081ae8587fa90b376160444 (patch)
tree3bbade787e2f3b791118990bb716cb962b386566 /drivers/video
parentdd09985499ac95484974eb0f832fe47b33369952 (diff)
parentcdfcedbf250ba2ec01b2555cffde83e9947e9fbf (diff)
downloadu-boot-linaro-stable-bbf2abc0f5a5be0b8081ae8587fa90b376160444.tar.gz
Merge branch 'next' of git://git.denx.de/u-boot-video
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 db867638f..c02ffd803 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);