diff options
author | Taneja, Archit <archit@ti.com> | 2011-03-15 00:28:22 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-03-15 03:04:27 -0400 |
commit | 31ef82377f1e0f1bc7d308ae4312e6cc5a431885 (patch) | |
tree | ad2154dfa61c9d2a38ad13895b9931cab03b48ae /drivers/video/omap2/dss/dss_features.h | |
parent | 235e7dba0264d4c6e56ee217fc7ef6d80da5eb67 (diff) |
OMAP: DSS2: FEATURES: Functions to return min and max values of parameters
Create 2 functions dss_feat_get_param_min() and dss_feat_get_param_max() which
return the minimum and maximum value of a parameter. Introduce a enum in
dss_features called dss_range_param which contains parameters whose ranges we
are interested in.
Replace this with dss_feat_get_max_dss_fck() which is specific to the parameter
DSS_FCK.
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/dss_features.h')
-rw-r--r-- | drivers/video/omap2/dss/dss_features.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/dss_features.h b/drivers/video/omap2/dss/dss_features.h index 729b5f19fa2..da63bbf38e9 100644 --- a/drivers/video/omap2/dss/dss_features.h +++ b/drivers/video/omap2/dss/dss_features.h | |||
@@ -54,10 +54,15 @@ enum dss_feat_reg_field { | |||
54 | FEAT_REG_DISPC_CLK_SWITCH, | 54 | FEAT_REG_DISPC_CLK_SWITCH, |
55 | }; | 55 | }; |
56 | 56 | ||
57 | enum dss_range_param { | ||
58 | FEAT_PARAM_DSS_FCK, | ||
59 | }; | ||
60 | |||
57 | /* DSS Feature Functions */ | 61 | /* DSS Feature Functions */ |
58 | int dss_feat_get_num_mgrs(void); | 62 | int dss_feat_get_num_mgrs(void); |
59 | int dss_feat_get_num_ovls(void); | 63 | int dss_feat_get_num_ovls(void); |
60 | unsigned long dss_feat_get_max_dss_fck(void); | 64 | unsigned long dss_feat_get_param_min(enum dss_range_param param); |
65 | unsigned long dss_feat_get_param_max(enum dss_range_param param); | ||
61 | enum omap_display_type dss_feat_get_supported_displays(enum omap_channel channel); | 66 | enum omap_display_type dss_feat_get_supported_displays(enum omap_channel channel); |
62 | enum omap_color_mode dss_feat_get_supported_color_modes(enum omap_plane plane); | 67 | enum omap_color_mode dss_feat_get_supported_color_modes(enum omap_plane plane); |
63 | bool dss_feat_color_mode_supported(enum omap_plane plane, | 68 | bool dss_feat_color_mode_supported(enum omap_plane plane, |