|
@@ -290,7 +290,7 @@ static void init_contrast(struct atmel_lcdfb_info *sinfo)
|
|
|
|
|
|
/* contrast pwm can be 'inverted' */
|
|
|
if (pdata->lcdcon_pol_negative)
|
|
|
- contrast_ctr &= ~(ATMEL_LCDC_POL_POSITIVE);
|
|
|
+ contrast_ctr &= ~(ATMEL_LCDC_POL_POSITIVE);
|
|
|
|
|
|
/* have some default contrast/backlight settings */
|
|
|
lcdc_writel(sinfo, ATMEL_LCDC_CONTRAST_CTR, contrast_ctr);
|
|
@@ -1095,6 +1095,7 @@ static int atmel_lcdfb_of_init(struct atmel_lcdfb_info *sinfo)
|
|
|
pdata->lcd_wiring_mode = ret;
|
|
|
|
|
|
pdata->lcdcon_is_backlight = of_property_read_bool(display_np, "atmel,lcdcon-backlight");
|
|
|
+ pdata->lcdcon_pol_negative = of_property_read_bool(display_np, "atmel,lcdcon-backlight-inverted");
|
|
|
|
|
|
timings = of_get_display_timings(display_np);
|
|
|
if (!timings) {
|