Sfoglia il codice sorgente

OMAP: DSS2: Taal: CABC workaround is Taal specific

Prepare for supporting panels other than Taal in this driver.

Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Jani Nikula 15 anni fa
parent
commit
1e8943dbae
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      drivers/video/omap2/displays/panel-taal.c

+ 3 - 2
drivers/video/omap2/displays/panel-taal.c

@@ -856,8 +856,9 @@ static int taal_power_on(struct omap_dss_device *dssdev)
 	if (r)
 		goto err;
 
-	/* on early revisions CABC is broken */
-	if (id2 == 0x00 || id2 == 0xff || id2 == 0x81)
+	/* on early Taal revisions CABC is broken */
+	if (td->panel_config->type == PANEL_TAAL &&
+		(id2 == 0x00 || id2 == 0xff || id2 == 0x81))
 		td->cabc_broken = true;
 
 	r = taal_dcs_write_1(DCS_BRIGHTNESS, 0xff);