]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
OMAP: DSS2: Adding dss_features for independent core clk divider
authorMurthy, Raghuveer <raghuveer.murthy@ti.com>
Thu, 3 Mar 2011 15:27:58 +0000 (09:27 -0600)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 11 Mar 2011 13:46:29 +0000 (15:46 +0200)
In OMAP3xxx DISPC_DIVISOR register has a logical clock divisor (lcd_div)
field. The lcd_div is common, for deciding the DISPC core functional clock
frequency, and the final pixel clock frequency for LCD display.

In OMAP4, there are 2 LCD channels, hence two divisor registers, DISPC_DIVISOR1
and DISPC_DIVISOR2. Also, there is a third register DISPC_DIVISOR.

The DISPC_DIVISOR in OMAP4 is used to configure lcd_div exclusively for core
functional clock configuration. For pixel clock configuration of primary and
secondary LCDs, lcd_div of DISPC_DIVISOR1 and DISPC_DIVISOR2 are used
respectively

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Raghuveer Murthy <raghuveer.murthy@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dss_features.c
drivers/video/omap2/dss/dss_features.h

index ccae57b34f5ca06ae1332f2bae397af6e97b600e..dc170ad079f2b81f1775c1aa0b9e40d1b314bc40 100644 (file)
@@ -234,7 +234,8 @@ static struct omap_dss_features omap4_dss_features = {
 
        .has_feature    =
                FEAT_GLOBAL_ALPHA | FEAT_PRE_MULT_ALPHA |
-               FEAT_MGR_LCD2 | FEAT_GLOBAL_ALPHA_VID1,
+               FEAT_MGR_LCD2 | FEAT_GLOBAL_ALPHA_VID1 |
+               FEAT_CORE_CLK_DIV,
 
        .num_mgrs = 3,
        .num_ovls = 3,
index 65d6de7e0feb7be99defaf8ae4fc8112d1d5bf46..569d1b295edda42de4deee4e572e2e847f0a5530 100644 (file)
@@ -36,6 +36,8 @@ enum dss_feat_id {
        FEAT_LINEBUFFERSPLIT    = 1 << 8,
        FEAT_ROWREPEATENABLE    = 1 << 9,
        FEAT_RESIZECONF         = 1 << 10,
+       /* Independent core clk divider */
+       FEAT_CORE_CLK_DIV       = 1 << 11,
 };
 
 /* DSS register field id */