diff options
author | Archit Taneja <archit@ti.com> | 2012-01-30 00:22:39 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-02-21 02:39:20 -0500 |
commit | c124f23dfdf7da890405dfa0efbeb015cab27b56 (patch) | |
tree | 4e1df2019228046168f47e8a9dc8dd0c399e05e8 /drivers/video/omap2/dss/dss_features.h | |
parent | cd3b34493f9b5de1d617e0be39f6cb5c59c9889c (diff) |
OMAPDSS: Features: Maintain dss_feats as a list
The number of dss_feat_id members has increased to a large value, the current
way of assigning a subset of these features (for a particular OMAP) as a mask
is no longer feasible.
Maintain the subset of features supported as lists. Make the function
dss_has_feature() traverse through this list.
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 | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/drivers/video/omap2/dss/dss_features.h b/drivers/video/omap2/dss/dss_features.h index 5f9b82156778..682f091cf02e 100644 --- a/drivers/video/omap2/dss/dss_features.h +++ b/drivers/video/omap2/dss/dss_features.h | |||
@@ -31,36 +31,36 @@ | |||
31 | 31 | ||
32 | /* DSS has feature id */ | 32 | /* DSS has feature id */ |
33 | enum dss_feat_id { | 33 | enum dss_feat_id { |
34 | FEAT_LCDENABLEPOL = 1 << 3, | 34 | FEAT_LCDENABLEPOL, |
35 | FEAT_LCDENABLESIGNAL = 1 << 4, | 35 | FEAT_LCDENABLESIGNAL, |
36 | FEAT_PCKFREEENABLE = 1 << 5, | 36 | FEAT_PCKFREEENABLE, |
37 | FEAT_FUNCGATED = 1 << 6, | 37 | FEAT_FUNCGATED, |
38 | FEAT_MGR_LCD2 = 1 << 7, | 38 | FEAT_MGR_LCD2, |
39 | FEAT_LINEBUFFERSPLIT = 1 << 8, | 39 | FEAT_LINEBUFFERSPLIT, |
40 | FEAT_ROWREPEATENABLE = 1 << 9, | 40 | FEAT_ROWREPEATENABLE, |
41 | FEAT_RESIZECONF = 1 << 10, | 41 | FEAT_RESIZECONF, |
42 | /* Independent core clk divider */ | 42 | /* Independent core clk divider */ |
43 | FEAT_CORE_CLK_DIV = 1 << 11, | 43 | FEAT_CORE_CLK_DIV, |
44 | FEAT_LCD_CLK_SRC = 1 << 12, | 44 | FEAT_LCD_CLK_SRC, |
45 | /* DSI-PLL power command 0x3 is not working */ | 45 | /* DSI-PLL power command 0x3 is not working */ |
46 | FEAT_DSI_PLL_PWR_BUG = 1 << 13, | 46 | FEAT_DSI_PLL_PWR_BUG, |
47 | FEAT_DSI_PLL_FREQSEL = 1 << 14, | 47 | FEAT_DSI_PLL_FREQSEL, |
48 | FEAT_DSI_DCS_CMD_CONFIG_VC = 1 << 15, | 48 | FEAT_DSI_DCS_CMD_CONFIG_VC, |
49 | FEAT_DSI_VC_OCP_WIDTH = 1 << 16, | 49 | FEAT_DSI_VC_OCP_WIDTH, |
50 | FEAT_DSI_REVERSE_TXCLKESC = 1 << 17, | 50 | FEAT_DSI_REVERSE_TXCLKESC, |
51 | FEAT_DSI_GNQ = 1 << 18, | 51 | FEAT_DSI_GNQ, |
52 | FEAT_HDMI_CTS_SWMODE = 1 << 19, | 52 | FEAT_HDMI_CTS_SWMODE, |
53 | FEAT_HANDLE_UV_SEPARATE = 1 << 20, | 53 | FEAT_HANDLE_UV_SEPARATE, |
54 | FEAT_ATTR2 = 1 << 21, | 54 | FEAT_ATTR2, |
55 | FEAT_VENC_REQUIRES_TV_DAC_CLK = 1 << 22, | 55 | FEAT_VENC_REQUIRES_TV_DAC_CLK, |
56 | FEAT_CPR = 1 << 23, | 56 | FEAT_CPR, |
57 | FEAT_PRELOAD = 1 << 24, | 57 | FEAT_PRELOAD, |
58 | FEAT_FIR_COEF_V = 1 << 25, | 58 | FEAT_FIR_COEF_V, |
59 | FEAT_ALPHA_FIXED_ZORDER = 1 << 26, | 59 | FEAT_ALPHA_FIXED_ZORDER, |
60 | FEAT_ALPHA_FREE_ZORDER = 1 << 27, | 60 | FEAT_ALPHA_FREE_ZORDER, |
61 | FEAT_FIFO_MERGE = 1 << 28, | 61 | FEAT_FIFO_MERGE, |
62 | /* An unknown HW bug causing the normal FIFO thresholds not to work */ | 62 | /* An unknown HW bug causing the normal FIFO thresholds not to work */ |
63 | FEAT_OMAP3_DSI_FIFO_BUG = 1 << 29, | 63 | FEAT_OMAP3_DSI_FIFO_BUG, |
64 | }; | 64 | }; |
65 | 65 | ||
66 | /* DSS register field id */ | 66 | /* DSS register field id */ |