aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/dss.h
diff options
context:
space:
mode:
authorSenthilvadivu Guruswamy <svadivu@ti.com>2011-01-24 01:22:02 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-03-11 08:46:21 -0500
commitc8aac01b7bd1109795586db11ea7f12ab1e2d163 (patch)
treeea58a702e4f3fe550548daa724c2ee71dd5ac1b7 /drivers/video/omap2/dss/dss.h
parent30ea50c9f5166a375b4dc0109d18a5d21bab5711 (diff)
OMAP2, 3: DSS2: DSI: create platform_driver, move init, exit to driver
Hwmod adaptation design requires each of the DSS HW IP to be a platform driver. So a platform_driver for DSI is created and init exit methods are moved from core.c to its driver probe,remove. pdev member has to be maintained by its own drivers. Also, vdds_dsi regulator handling is copied to dsi.c, since vdds_dsi regulator is needed by dpi_init() too. Board files are updated accordingly to add 2 instances of vdds_dsi regulator. DSI platform driver is registered from inside omap_dss_probe, in the order desired. Signed-off-by: Senthilvadivu Guruswamy <svadivu@ti.com> Signed-off-by: Sumit Semwal <sumit.semwal@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/dss.h')
-rw-r--r--drivers/video/omap2/dss/dss.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/omap2/dss/dss.h b/drivers/video/omap2/dss/dss.h
index 931385185dc6..981d247c30f2 100644
--- a/drivers/video/omap2/dss/dss.h
+++ b/drivers/video/omap2/dss/dss.h
@@ -261,8 +261,8 @@ static inline void sdi_exit(void)
261 261
262/* DSI */ 262/* DSI */
263#ifdef CONFIG_OMAP2_DSS_DSI 263#ifdef CONFIG_OMAP2_DSS_DSI
264int dsi_init(struct platform_device *pdev); 264int dsi_init_platform_driver(void);
265void dsi_exit(void); 265void dsi_uninit_platform_driver(void);
266 266
267void dsi_dump_clocks(struct seq_file *s); 267void dsi_dump_clocks(struct seq_file *s);
268void dsi_dump_irqs(struct seq_file *s); 268void dsi_dump_irqs(struct seq_file *s);
@@ -287,11 +287,11 @@ void dsi_get_overlay_fifo_thresholds(enum omap_plane plane,
287void dsi_wait_dsi1_pll_active(void); 287void dsi_wait_dsi1_pll_active(void);
288void dsi_wait_dsi2_pll_active(void); 288void dsi_wait_dsi2_pll_active(void);
289#else 289#else
290static inline int dsi_init(struct platform_device *pdev) 290static inline int dsi_init_platform_driver(void)
291{ 291{
292 return 0; 292 return 0;
293} 293}
294static inline void dsi_exit(void) 294static inline void dsi_uninit_platform_driver(void)
295{ 295{
296} 296}
297static inline void dsi_wait_dsi1_pll_active(void) 297static inline void dsi_wait_dsi1_pll_active(void)