diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-03-05 10:21:35 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-04-03 08:19:18 -0400 |
commit | f1e0001f973cfbec62d702cbd3d56f6b703cc90e (patch) | |
tree | b78e0b018a32bbd4377e238887ad2eac0b51598a /include/video/omapdss.h | |
parent | 100c826235793345efe06b3558cc9d36166b1e26 (diff) |
OMAPDSS: DSI: use new clock calculation code
Use the new clock calculation code in the DSI driver.
The new code does not need DSI video mode parameters from the panel
driver, like the old code does. Instead the new code is given the normal
video timings, and a few DSI parameters, which are used to create DSI
video timings.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'include/video/omapdss.h')
-rw-r--r-- | include/video/omapdss.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/include/video/omapdss.h b/include/video/omapdss.h index 7f774c5f8b6b..8821d933d9fd 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h | |||
@@ -267,9 +267,21 @@ enum omap_dss_dsi_trans_mode { | |||
267 | }; | 267 | }; |
268 | 268 | ||
269 | struct omap_dss_dsi_videomode_timings { | 269 | struct omap_dss_dsi_videomode_timings { |
270 | unsigned long hsclk; | ||
271 | |||
272 | unsigned ndl; | ||
273 | unsigned bitspp; | ||
274 | |||
275 | /* pixels */ | ||
276 | u16 hact; | ||
277 | /* lines */ | ||
278 | u16 vact; | ||
279 | |||
270 | /* DSI video mode blanking data */ | 280 | /* DSI video mode blanking data */ |
271 | /* Unit: byte clock cycles */ | 281 | /* Unit: byte clock cycles */ |
282 | u16 hss; | ||
272 | u16 hsa; | 283 | u16 hsa; |
284 | u16 hse; | ||
273 | u16 hfp; | 285 | u16 hfp; |
274 | u16 hbp; | 286 | u16 hbp; |
275 | /* Unit: line clocks */ | 287 | /* Unit: line clocks */ |
@@ -293,10 +305,12 @@ struct omap_dss_dsi_config { | |||
293 | enum omap_dss_dsi_mode mode; | 305 | enum omap_dss_dsi_mode mode; |
294 | enum omap_dss_dsi_pixel_format pixel_format; | 306 | enum omap_dss_dsi_pixel_format pixel_format; |
295 | const struct omap_video_timings *timings; | 307 | const struct omap_video_timings *timings; |
296 | const struct omap_dss_dsi_videomode_timings *vm_timings; | ||
297 | 308 | ||
298 | unsigned long hs_clk; | 309 | unsigned long hs_clk_min, hs_clk_max; |
299 | unsigned long lp_clk; | 310 | unsigned long lp_clk_min, lp_clk_max; |
311 | |||
312 | bool ddr_clk_always_on; | ||
313 | enum omap_dss_dsi_trans_mode trans_mode; | ||
300 | }; | 314 | }; |
301 | 315 | ||
302 | void dsi_bus_lock(struct omap_dss_device *dssdev); | 316 | void dsi_bus_lock(struct omap_dss_device *dssdev); |