OMAP: DSS2: Taal: CABC workaround is Taal specific
authorJani Nikula <ext-jani.1.nikula@nokia.com>
Thu, 15 Apr 2010 14:07:39 +0000 (17:07 +0300)
committerTomi Valkeinen <tomi.valkeinen@nokia.com>
Tue, 3 Aug 2010 12:18:49 +0000 (15:18 +0300)
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>
drivers/video/omap2/displays/panel-taal.c

index 941f1f2..2a91d56 100644 (file)
@@ -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);