diff options
author | Murthy, Raghuveer <raghuveer.murthy@ti.com> | 2011-03-03 10:27:58 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-03-11 08:46:29 -0500 |
commit | 5c6366e14d9d4466ae34a1ccbc08dd8738909c1f (patch) | |
tree | 8968a2109d82feb21927333c3d85f1fef451d49c /drivers | |
parent | 85604b0a247615157cedfec46b9cbfde2884f80f (diff) |
OMAP: DSS2: Adding dss_features for independent core clk divider
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/omap2/dss/dss_features.c | 3 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dss_features.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/dss_features.c b/drivers/video/omap2/dss/dss_features.c index ccae57b34f5c..dc170ad079f2 100644 --- a/drivers/video/omap2/dss/dss_features.c +++ b/drivers/video/omap2/dss/dss_features.c | |||
@@ -234,7 +234,8 @@ static struct omap_dss_features omap4_dss_features = { | |||
234 | 234 | ||
235 | .has_feature = | 235 | .has_feature = |
236 | FEAT_GLOBAL_ALPHA | FEAT_PRE_MULT_ALPHA | | 236 | FEAT_GLOBAL_ALPHA | FEAT_PRE_MULT_ALPHA | |
237 | FEAT_MGR_LCD2 | FEAT_GLOBAL_ALPHA_VID1, | 237 | FEAT_MGR_LCD2 | FEAT_GLOBAL_ALPHA_VID1 | |
238 | FEAT_CORE_CLK_DIV, | ||
238 | 239 | ||
239 | .num_mgrs = 3, | 240 | .num_mgrs = 3, |
240 | .num_ovls = 3, | 241 | .num_ovls = 3, |
diff --git a/drivers/video/omap2/dss/dss_features.h b/drivers/video/omap2/dss/dss_features.h index 65d6de7e0feb..569d1b295edd 100644 --- a/drivers/video/omap2/dss/dss_features.h +++ b/drivers/video/omap2/dss/dss_features.h | |||
@@ -36,6 +36,8 @@ enum dss_feat_id { | |||
36 | FEAT_LINEBUFFERSPLIT = 1 << 8, | 36 | FEAT_LINEBUFFERSPLIT = 1 << 8, |
37 | FEAT_ROWREPEATENABLE = 1 << 9, | 37 | FEAT_ROWREPEATENABLE = 1 << 9, |
38 | FEAT_RESIZECONF = 1 << 10, | 38 | FEAT_RESIZECONF = 1 << 10, |
39 | /* Independent core clk divider */ | ||
40 | FEAT_CORE_CLK_DIV = 1 << 11, | ||
39 | }; | 41 | }; |
40 | 42 | ||
41 | /* DSS register field id */ | 43 | /* DSS register field id */ |