aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/dsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/omap2/dss/dsi.c')
-rw-r--r--drivers/video/omap2/dss/dsi.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c
index a243e65b870f..d18c8e290c85 100644
--- a/drivers/video/omap2/dss/dsi.c
+++ b/drivers/video/omap2/dss/dsi.c
@@ -261,9 +261,6 @@ struct dsi_data {
261 struct clk *dss_clk; 261 struct clk *dss_clk;
262 struct clk *sys_clk; 262 struct clk *sys_clk;
263 263
264 int (*enable_pads)(int dsi_id, unsigned lane_mask);
265 void (*disable_pads)(int dsi_id, unsigned lane_mask);
266
267 struct dsi_clock_info current_cinfo; 264 struct dsi_clock_info current_cinfo;
268 265
269 bool vdds_dsi_enabled; 266 bool vdds_dsi_enabled;
@@ -2306,7 +2303,7 @@ static int dsi_cio_init(struct omap_dss_device *dssdev)
2306 2303
2307 DSSDBGF(); 2304 DSSDBGF();
2308 2305
2309 r = dsi->enable_pads(dsi_get_dsidev_id(dsidev), dsi_get_lane_mask(dssdev)); 2306 r = dss_dsi_enable_pads(dsi_get_dsidev_id(dsidev), dsi_get_lane_mask(dssdev));
2310 if (r) 2307 if (r)
2311 return r; 2308 return r;
2312 2309
@@ -2416,21 +2413,20 @@ err_cio_pwr:
2416 dsi_cio_disable_lane_override(dsidev); 2413 dsi_cio_disable_lane_override(dsidev);
2417err_scp_clk_dom: 2414err_scp_clk_dom:
2418 dsi_disable_scp_clk(dsidev); 2415 dsi_disable_scp_clk(dsidev);
2419 dsi->disable_pads(dsi_get_dsidev_id(dsidev), dsi_get_lane_mask(dssdev)); 2416 dss_dsi_disable_pads(dsi_get_dsidev_id(dsidev), dsi_get_lane_mask(dssdev));
2420 return r; 2417 return r;
2421} 2418}
2422 2419
2423static void dsi_cio_uninit(struct omap_dss_device *dssdev) 2420static void dsi_cio_uninit(struct omap_dss_device *dssdev)
2424{ 2421{
2425 struct platform_device *dsidev = dsi_get_dsidev_from_dssdev(dssdev); 2422 struct platform_device *dsidev = dsi_get_dsidev_from_dssdev(dssdev);
2426 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev);
2427 2423
2428 /* DDR_CLK_ALWAYS_ON */ 2424 /* DDR_CLK_ALWAYS_ON */
2429 REG_FLD_MOD(dsidev, DSI_CLK_CTRL, 0, 13, 13); 2425 REG_FLD_MOD(dsidev, DSI_CLK_CTRL, 0, 13, 13);
2430 2426
2431 dsi_cio_power(dsidev, DSI_COMPLEXIO_POWER_OFF); 2427 dsi_cio_power(dsidev, DSI_COMPLEXIO_POWER_OFF);
2432 dsi_disable_scp_clk(dsidev); 2428 dsi_disable_scp_clk(dsidev);
2433 dsi->disable_pads(dsi_get_dsidev_id(dsidev), dsi_get_lane_mask(dssdev)); 2429 dss_dsi_disable_pads(dsi_get_dsidev_id(dsidev), dsi_get_lane_mask(dssdev));
2434} 2430}
2435 2431
2436static void dsi_config_tx_fifo(struct platform_device *dsidev, 2432static void dsi_config_tx_fifo(struct platform_device *dsidev,
@@ -4645,8 +4641,6 @@ static void dsi_put_clocks(struct platform_device *dsidev)
4645/* DSI1 HW IP initialisation */ 4641/* DSI1 HW IP initialisation */
4646static int omap_dsihw_probe(struct platform_device *dsidev) 4642static int omap_dsihw_probe(struct platform_device *dsidev)
4647{ 4643{
4648 struct omap_display_platform_data *dss_plat_data;
4649 struct omap_dss_board_info *board_info;
4650 u32 rev; 4644 u32 rev;
4651 int r, i, dsi_module = dsi_get_dsidev_id(dsidev); 4645 int r, i, dsi_module = dsi_get_dsidev_id(dsidev);
4652 struct resource *dsi_mem; 4646 struct resource *dsi_mem;
@@ -4660,11 +4654,6 @@ static int omap_dsihw_probe(struct platform_device *dsidev)
4660 dsi_pdev_map[dsi_module] = dsidev; 4654 dsi_pdev_map[dsi_module] = dsidev;
4661 dev_set_drvdata(&dsidev->dev, dsi); 4655 dev_set_drvdata(&dsidev->dev, dsi);
4662 4656
4663 dss_plat_data = dsidev->dev.platform_data;
4664 board_info = dss_plat_data->board_data;
4665 dsi->enable_pads = board_info->dsi_enable_pads;
4666 dsi->disable_pads = board_info->dsi_disable_pads;
4667
4668 spin_lock_init(&dsi->irq_lock); 4657 spin_lock_init(&dsi->irq_lock);
4669 spin_lock_init(&dsi->errors_lock); 4658 spin_lock_init(&dsi->errors_lock);
4670 dsi->errors = 0; 4659 dsi->errors = 0;