From 1e8943dbae98f48fc485fb9a671e94972b234cb2 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Thu, 15 Apr 2010 17:07:39 +0300 Subject: [PATCH] OMAP: DSS2: Taal: CABC workaround is Taal specific Prepare for supporting panels other than Taal in this driver. Signed-off-by: Jani Nikula Signed-off-by: Tomi Valkeinen --- drivers/video/omap2/displays/panel-taal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/video/omap2/displays/panel-taal.c b/drivers/video/omap2/displays/panel-taal.c index 941f1f208c9e..2a91d5662c07 100644 --- a/drivers/video/omap2/displays/panel-taal.c +++ b/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); -- 2.39.5