Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230480
b: refs/heads/master
c: 8fbde10
h: refs/heads/master
v: v3
  • Loading branch information
Samreen authored and Tomi Valkeinen committed Jan 10, 2011
1 parent a57edbd commit 8ab41f5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 712247a6811530acdd604fa21574ccf1f2d80838
refs/heads/master: 8fbde10aff726c9b5a1a2fe878a072b937d32476
20 changes: 17 additions & 3 deletions trunk/drivers/video/omap2/dss/dss_features.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static struct omap_dss_features omap2_dss_features = {
};

/* OMAP3 DSS Features */
static struct omap_dss_features omap3_dss_features = {
static struct omap_dss_features omap3430_dss_features = {
.reg_fields = omap3_dss_reg_fields,
.num_reg_fields = ARRAY_SIZE(omap3_dss_reg_fields),

Expand All @@ -146,6 +146,18 @@ static struct omap_dss_features omap3_dss_features = {
.supported_color_modes = omap3_dss_supported_color_modes,
};

static struct omap_dss_features omap3630_dss_features = {
.reg_fields = omap3_dss_reg_fields,
.num_reg_fields = ARRAY_SIZE(omap3_dss_reg_fields),

.has_feature = FEAT_GLOBAL_ALPHA | FEAT_PRE_MULT_ALPHA,

.num_mgrs = 2,
.num_ovls = 3,
.supported_displays = omap3_dss_supported_displays,
.supported_color_modes = omap3_dss_supported_color_modes,
};

/* Functions returning values related to a DSS feature */
int dss_feat_get_num_mgrs(void)
{
Expand Down Expand Up @@ -186,6 +198,8 @@ void dss_features_init(void)
{
if (cpu_is_omap24xx())
omap_current_dss_features = &omap2_dss_features;
else
omap_current_dss_features = &omap3_dss_features;
else if (cpu_is_omap3630())
omap_current_dss_features = &omap3630_dss_features;
else if (cpu_is_omap34xx())
omap_current_dss_features = &omap3430_dss_features;
}
1 change: 1 addition & 0 deletions trunk/drivers/video/omap2/dss/dss_features.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
enum dss_feat_id {
FEAT_GLOBAL_ALPHA = 1 << 0,
FEAT_GLOBAL_ALPHA_VID1 = 1 << 1,
FEAT_PRE_MULT_ALPHA = 1 << 2,
};

/* DSS register field id */
Expand Down

0 comments on commit 8ab41f5

Please sign in to comment.