aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2
diff options
context:
space:
mode:
authorSamreen <samreen@ti.com>2010-11-04 07:28:41 -0400
committerTomi Valkeinen <tomi.valkeinen@nokia.com>2011-01-10 03:54:18 -0500
commit8fbde10aff726c9b5a1a2fe878a072b937d32476 (patch)
tree65c8c5160dea67321eabc59bb35914addecccc2d /drivers/video/omap2
parent712247a6811530acdd604fa21574ccf1f2d80838 (diff)
OMAP3: DSS2: Split OMAP3 has feature for 3430 & 3630
Splitting the OMAP3 dss has feature separately for omap3430 & omap3630 Signed-off-by: Samreen <samreen@ti.com> Signed-off-by: Archit Taneja <archit@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r--drivers/video/omap2/dss/dss_features.c20
-rw-r--r--drivers/video/omap2/dss/dss_features.h1
2 files changed, 18 insertions, 3 deletions
diff --git a/drivers/video/omap2/dss/dss_features.c b/drivers/video/omap2/dss/dss_features.c
index 867f68de125f..854deba4e0d8 100644
--- a/drivers/video/omap2/dss/dss_features.c
+++ b/drivers/video/omap2/dss/dss_features.c
@@ -134,7 +134,7 @@ static struct omap_dss_features omap2_dss_features = {
134}; 134};
135 135
136/* OMAP3 DSS Features */ 136/* OMAP3 DSS Features */
137static struct omap_dss_features omap3_dss_features = { 137static struct omap_dss_features omap3430_dss_features = {
138 .reg_fields = omap3_dss_reg_fields, 138 .reg_fields = omap3_dss_reg_fields,
139 .num_reg_fields = ARRAY_SIZE(omap3_dss_reg_fields), 139 .num_reg_fields = ARRAY_SIZE(omap3_dss_reg_fields),
140 140
@@ -146,6 +146,18 @@ static struct omap_dss_features omap3_dss_features = {
146 .supported_color_modes = omap3_dss_supported_color_modes, 146 .supported_color_modes = omap3_dss_supported_color_modes,
147}; 147};
148 148
149static struct omap_dss_features omap3630_dss_features = {
150 .reg_fields = omap3_dss_reg_fields,
151 .num_reg_fields = ARRAY_SIZE(omap3_dss_reg_fields),
152
153 .has_feature = FEAT_GLOBAL_ALPHA | FEAT_PRE_MULT_ALPHA,
154
155 .num_mgrs = 2,
156 .num_ovls = 3,
157 .supported_displays = omap3_dss_supported_displays,
158 .supported_color_modes = omap3_dss_supported_color_modes,
159};
160
149/* Functions returning values related to a DSS feature */ 161/* Functions returning values related to a DSS feature */
150int dss_feat_get_num_mgrs(void) 162int dss_feat_get_num_mgrs(void)
151{ 163{
@@ -186,6 +198,8 @@ void dss_features_init(void)
186{ 198{
187 if (cpu_is_omap24xx()) 199 if (cpu_is_omap24xx())
188 omap_current_dss_features = &omap2_dss_features; 200 omap_current_dss_features = &omap2_dss_features;
189 else 201 else if (cpu_is_omap3630())
190 omap_current_dss_features = &omap3_dss_features; 202 omap_current_dss_features = &omap3630_dss_features;
203 else if (cpu_is_omap34xx())
204 omap_current_dss_features = &omap3430_dss_features;
191} 205}
diff --git a/drivers/video/omap2/dss/dss_features.h b/drivers/video/omap2/dss/dss_features.h
index cb231eaa9b31..aeb2eea454fc 100644
--- a/drivers/video/omap2/dss/dss_features.h
+++ b/drivers/video/omap2/dss/dss_features.h
@@ -27,6 +27,7 @@
27enum dss_feat_id { 27enum dss_feat_id {
28 FEAT_GLOBAL_ALPHA = 1 << 0, 28 FEAT_GLOBAL_ALPHA = 1 << 0,
29 FEAT_GLOBAL_ALPHA_VID1 = 1 << 1, 29 FEAT_GLOBAL_ALPHA_VID1 = 1 << 1,
30 FEAT_PRE_MULT_ALPHA = 1 << 2,
30}; 31};
31 32
32/* DSS register field id */ 33/* DSS register field id */