diff options
| author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-03-05 09:29:36 -0500 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-04-03 08:19:17 -0400 |
| commit | 478d7df8af89f449bacc4e67ff35dc630400c0ca (patch) | |
| tree | 5184c805b789e956eb34919bfdb07e4a8603b921 /include/video | |
| parent | 99322577e80da240cebc087da9ea328bb0960be1 (diff) | |
OMAPDSS: DSI: add enum omap_dss_dsi_trans_mode
Instead of managing DSI sync ends with booleans, add an enum for the DSI
transfer mode. This is much cleaner way to handle the DSI syncs.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'include/video')
| -rw-r--r-- | include/video/omapdss.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/video/omapdss.h b/include/video/omapdss.h index 4dd4cea41bd4..7f774c5f8b6b 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h | |||
| @@ -257,6 +257,15 @@ void rfbi_bus_unlock(void); | |||
| 257 | 257 | ||
| 258 | /* DSI */ | 258 | /* DSI */ |
| 259 | 259 | ||
| 260 | enum omap_dss_dsi_trans_mode { | ||
| 261 | /* Sync Pulses: both sync start and end packets sent */ | ||
| 262 | OMAP_DSS_DSI_PULSE_MODE, | ||
| 263 | /* Sync Events: only sync start packets sent */ | ||
| 264 | OMAP_DSS_DSI_EVENT_MODE, | ||
| 265 | /* Burst: only sync start packets sent, pixels are time compressed */ | ||
| 266 | OMAP_DSS_DSI_BURST_MODE, | ||
| 267 | }; | ||
| 268 | |||
| 260 | struct omap_dss_dsi_videomode_timings { | 269 | struct omap_dss_dsi_videomode_timings { |
| 261 | /* DSI video mode blanking data */ | 270 | /* DSI video mode blanking data */ |
| 262 | /* Unit: byte clock cycles */ | 271 | /* Unit: byte clock cycles */ |
| @@ -274,9 +283,7 @@ struct omap_dss_dsi_videomode_timings { | |||
| 274 | int hbp_blanking_mode; | 283 | int hbp_blanking_mode; |
| 275 | int hfp_blanking_mode; | 284 | int hfp_blanking_mode; |
| 276 | 285 | ||
| 277 | /* Video port sync events */ | 286 | enum omap_dss_dsi_trans_mode trans_mode; |
| 278 | bool vp_vsync_end; | ||
| 279 | bool vp_hsync_end; | ||
| 280 | 287 | ||
| 281 | bool ddr_clk_always_on; | 288 | bool ddr_clk_always_on; |
| 282 | int window_sync; | 289 | int window_sync; |
