OMAP2PLUS: DSS2: FEATURES: Function to Provide the max fck supported
The maximum supported frequency for DSS has increased from 173 to 186 Mhz on OMAP4. Introduce a dss feature function to get the max_fck to replace DISPC_MAX_FCK macro. Signed-off-by: Archit Taneja <archit@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
87a7484b6a
commit
819d807c59
5 changed files with 23 additions and 8 deletions
|
@ -41,6 +41,7 @@ struct omap_dss_features {
|
|||
|
||||
const int num_mgrs;
|
||||
const int num_ovls;
|
||||
const unsigned long max_dss_fck;
|
||||
const enum omap_display_type *supported_displays;
|
||||
const enum omap_color_mode *supported_color_modes;
|
||||
};
|
||||
|
@ -168,6 +169,7 @@ static struct omap_dss_features omap2_dss_features = {
|
|||
|
||||
.num_mgrs = 2,
|
||||
.num_ovls = 3,
|
||||
.max_dss_fck = 173000000,
|
||||
.supported_displays = omap2_dss_supported_displays,
|
||||
.supported_color_modes = omap2_dss_supported_color_modes,
|
||||
};
|
||||
|
@ -185,6 +187,7 @@ static struct omap_dss_features omap3430_dss_features = {
|
|||
|
||||
.num_mgrs = 2,
|
||||
.num_ovls = 3,
|
||||
.max_dss_fck = 173000000,
|
||||
.supported_displays = omap3430_dss_supported_displays,
|
||||
.supported_color_modes = omap3_dss_supported_color_modes,
|
||||
};
|
||||
|
@ -202,6 +205,7 @@ static struct omap_dss_features omap3630_dss_features = {
|
|||
|
||||
.num_mgrs = 2,
|
||||
.num_ovls = 3,
|
||||
.max_dss_fck = 173000000,
|
||||
.supported_displays = omap3630_dss_supported_displays,
|
||||
.supported_color_modes = omap3_dss_supported_color_modes,
|
||||
};
|
||||
|
@ -217,6 +221,7 @@ static struct omap_dss_features omap4_dss_features = {
|
|||
|
||||
.num_mgrs = 3,
|
||||
.num_ovls = 3,
|
||||
.max_dss_fck = 186000000,
|
||||
.supported_displays = omap4_dss_supported_displays,
|
||||
.supported_color_modes = omap3_dss_supported_color_modes,
|
||||
};
|
||||
|
@ -232,6 +237,12 @@ int dss_feat_get_num_ovls(void)
|
|||
return omap_current_dss_features->num_ovls;
|
||||
}
|
||||
|
||||
/* Max supported DSS FCK in Hz */
|
||||
unsigned long dss_feat_get_max_dss_fck(void)
|
||||
{
|
||||
return omap_current_dss_features->max_dss_fck;
|
||||
}
|
||||
|
||||
enum omap_display_type dss_feat_get_supported_displays(enum omap_channel channel)
|
||||
{
|
||||
return omap_current_dss_features->supported_displays[channel];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue