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 941f1f208c9e4960176515bdb94d1aff0c9e7cbb..2a91d5662c0750a7aefb4a9de163b647c84f3269 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);