diff options
-rw-r--r-- | drivers/video/omap2/dss/dss_features.c | 20 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dss_features.h | 1 |
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 */ |
137 | static struct omap_dss_features omap3_dss_features = { | 137 | static 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 | ||
149 | static 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 */ |
150 | int dss_feat_get_num_mgrs(void) | 162 | int 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 @@ | |||
27 | enum dss_feat_id { | 27 | enum 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 */ |