• Home
  • Raw
  • Download

Lines Matching refs:dpi

50 } dpi;  variable
201 clkin = dsi_get_pll_clkin(dpi.dsidev); in dpi_dsi_clk_calc()
204 ctx->dsidev = dpi.dsidev; in dpi_dsi_clk_calc()
212 return dsi_pll_calc(dpi.dsidev, clkin, in dpi_dsi_clk_calc()
260 r = dsi_pll_set_clock_div(dpi.dsidev, &ctx.dsi_cinfo); in dpi_set_dsi_clk()
267 dpi.mgr_config.clock_info = ctx.dispc_cinfo; in dpi_set_dsi_clk()
291 dpi.mgr_config.clock_info = ctx.dispc_cinfo; in dpi_set_dispc_clk()
302 struct omap_video_timings *t = &dpi.timings; in dpi_set_mode()
308 if (dpi.dsidev) in dpi_set_mode()
334 dpi.mgr_config.io_pad_mode = DSS_IO_PAD_MODE_BYPASS; in dpi_config_lcd_manager()
336 dpi.mgr_config.stallmode = false; in dpi_config_lcd_manager()
337 dpi.mgr_config.fifohandcheck = false; in dpi_config_lcd_manager()
339 dpi.mgr_config.video_port_width = dpi.data_lines; in dpi_config_lcd_manager()
341 dpi.mgr_config.lcden_sig_polarity = 0; in dpi_config_lcd_manager()
343 dss_mgr_set_lcd_config(mgr, &dpi.mgr_config); in dpi_config_lcd_manager()
348 struct omap_dss_output *out = &dpi.output; in omapdss_dpi_display_enable()
351 mutex_lock(&dpi.lock); in omapdss_dpi_display_enable()
353 if (dss_has_feature(FEAT_DPI_USES_VDDS_DSI) && !dpi.vdds_dsi_reg) { in omapdss_dpi_display_enable()
372 r = regulator_enable(dpi.vdds_dsi_reg); in omapdss_dpi_display_enable()
385 if (dpi.dsidev) { in omapdss_dpi_display_enable()
386 r = dsi_runtime_get(dpi.dsidev); in omapdss_dpi_display_enable()
390 r = dsi_pll_init(dpi.dsidev, 0, 1); in omapdss_dpi_display_enable()
407 mutex_unlock(&dpi.lock); in omapdss_dpi_display_enable()
413 if (dpi.dsidev) in omapdss_dpi_display_enable()
414 dsi_pll_uninit(dpi.dsidev, true); in omapdss_dpi_display_enable()
416 if (dpi.dsidev) in omapdss_dpi_display_enable()
417 dsi_runtime_put(dpi.dsidev); in omapdss_dpi_display_enable()
423 regulator_disable(dpi.vdds_dsi_reg); in omapdss_dpi_display_enable()
429 mutex_unlock(&dpi.lock); in omapdss_dpi_display_enable()
436 struct omap_overlay_manager *mgr = dpi.output.manager; in omapdss_dpi_display_disable()
438 mutex_lock(&dpi.lock); in omapdss_dpi_display_disable()
442 if (dpi.dsidev) { in omapdss_dpi_display_disable()
444 dsi_pll_uninit(dpi.dsidev, true); in omapdss_dpi_display_disable()
445 dsi_runtime_put(dpi.dsidev); in omapdss_dpi_display_disable()
451 regulator_disable(dpi.vdds_dsi_reg); in omapdss_dpi_display_disable()
455 mutex_unlock(&dpi.lock); in omapdss_dpi_display_disable()
464 mutex_lock(&dpi.lock); in omapdss_dpi_set_timings()
466 dpi.timings = *timings; in omapdss_dpi_set_timings()
468 mutex_unlock(&dpi.lock); in omapdss_dpi_set_timings()
475 struct omap_overlay_manager *mgr = dpi.output.manager; in dpi_check_timings()
488 if (dpi.dsidev) { in dpi_check_timings()
515 mutex_lock(&dpi.lock); in omapdss_dpi_set_data_lines()
517 dpi.data_lines = data_lines; in omapdss_dpi_set_data_lines()
519 mutex_unlock(&dpi.lock); in omapdss_dpi_set_data_lines()
582 dpi.vdds_dsi_reg == NULL) { in dpi_init_display()
592 dpi.vdds_dsi_reg = vdds_dsi; in dpi_init_display()
595 dsidev = dpi_get_dsidev(dpi.output.dispc_channel); in dpi_init_display()
605 dpi.dsidev = dsidev; in dpi_init_display()
662 r = omapdss_output_set_device(&dpi.output, dssdev); in dpi_probe_pdata()
673 omapdss_output_unset_device(&dpi.output); in dpi_probe_pdata()
683 struct omap_dss_output *out = &dpi.output; in dpi_init_output()
696 struct omap_dss_output *out = &dpi.output; in dpi_uninit_output()
705 mutex_init(&dpi.lock); in omap_dpi_probe()