diff options
-rw-r--r-- | drivers/video/omap2/dss/dss.h | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/drivers/video/omap2/dss/dss.h b/drivers/video/omap2/dss/dss.h index faaf35857b0e..84758936429d 100644 --- a/drivers/video/omap2/dss/dss.h +++ b/drivers/video/omap2/dss/dss.h | |||
@@ -277,6 +277,12 @@ int sdi_init_platform_driver(void) __init; | |||
277 | void sdi_uninit_platform_driver(void) __exit; | 277 | void sdi_uninit_platform_driver(void) __exit; |
278 | 278 | ||
279 | /* DSI */ | 279 | /* DSI */ |
280 | |||
281 | typedef bool (*dsi_pll_calc_func)(int regn, int regm, unsigned long fint, | ||
282 | unsigned long pll, void *data); | ||
283 | typedef bool (*dsi_hsdiv_calc_func)(int regm_dispc, unsigned long dispc, | ||
284 | void *data); | ||
285 | |||
280 | #ifdef CONFIG_OMAP2_DSS_DSI | 286 | #ifdef CONFIG_OMAP2_DSS_DSI |
281 | 287 | ||
282 | struct dentry; | 288 | struct dentry; |
@@ -295,10 +301,6 @@ u8 dsi_get_pixel_size(enum omap_dss_dsi_pixel_format fmt); | |||
295 | 301 | ||
296 | unsigned long dsi_get_pll_clkin(struct platform_device *dsidev); | 302 | unsigned long dsi_get_pll_clkin(struct platform_device *dsidev); |
297 | 303 | ||
298 | typedef bool (*dsi_pll_calc_func)(int regn, int regm, unsigned long fint, | ||
299 | unsigned long pll, void *data); | ||
300 | typedef bool (*dsi_hsdiv_calc_func)(int regm_dispc, unsigned long dispc, | ||
301 | void *data); | ||
302 | bool dsi_hsdiv_calc(struct platform_device *dsidev, unsigned long pll, | 304 | bool dsi_hsdiv_calc(struct platform_device *dsidev, unsigned long pll, |
303 | unsigned long out_min, dsi_hsdiv_calc_func func, void *data); | 305 | unsigned long out_min, dsi_hsdiv_calc_func func, void *data); |
304 | bool dsi_pll_calc(struct platform_device *dsidev, unsigned long clkin, | 306 | bool dsi_pll_calc(struct platform_device *dsidev, unsigned long clkin, |
@@ -358,6 +360,27 @@ static inline struct platform_device *dsi_get_dsidev_from_id(int module) | |||
358 | { | 360 | { |
359 | return NULL; | 361 | return NULL; |
360 | } | 362 | } |
363 | |||
364 | static inline unsigned long dsi_get_pll_clkin(struct platform_device *dsidev) | ||
365 | { | ||
366 | return 0; | ||
367 | } | ||
368 | |||
369 | static inline bool dsi_hsdiv_calc(struct platform_device *dsidev, | ||
370 | unsigned long pll, unsigned long out_min, | ||
371 | dsi_hsdiv_calc_func func, void *data) | ||
372 | { | ||
373 | return false; | ||
374 | } | ||
375 | |||
376 | static inline bool dsi_pll_calc(struct platform_device *dsidev, | ||
377 | unsigned long clkin, | ||
378 | unsigned long pll_min, unsigned long pll_max, | ||
379 | dsi_pll_calc_func func, void *data) | ||
380 | { | ||
381 | return false; | ||
382 | } | ||
383 | |||
361 | #endif | 384 | #endif |
362 | 385 | ||
363 | /* DPI */ | 386 | /* DPI */ |