Home
last modified time | relevance | path

Searched refs:dss (Results 1 – 25 of 33) sorted by relevance

12

/drivers/gpu/drm/omapdrm/dss/
Ddss.c54 #define REG_GET(dss, idx, start, end) \ argument
55 FLD_GET(dss_read_reg(dss, idx), start, end)
57 #define REG_FLD_MOD(dss, idx, val, start, end) \ argument
58 dss_write_reg(dss, idx, \
59 FLD_MOD(dss_read_reg(dss, idx), val, start, end))
62 int (*dpi_select_source)(struct dss_device *dss, int port,
64 int (*select_lcd_source)(struct dss_device *dss,
94 static inline void dss_write_reg(struct dss_device *dss, in dss_write_reg() argument
97 __raw_writel(val, dss->base + idx.idx); in dss_write_reg()
100 static inline u32 dss_read_reg(struct dss_device *dss, const struct dss_reg idx) in dss_read_reg() argument
[all …]
Doutput.c97 int dss_install_mgr_ops(struct dss_device *dss, in dss_install_mgr_ops() argument
101 if (dss->mgr_ops) in dss_install_mgr_ops()
104 dss->mgr_ops = mgr_ops; in dss_install_mgr_ops()
105 dss->mgr_ops_priv = priv; in dss_install_mgr_ops()
111 void dss_uninstall_mgr_ops(struct dss_device *dss) in dss_uninstall_mgr_ops() argument
113 dss->mgr_ops = NULL; in dss_uninstall_mgr_ops()
114 dss->mgr_ops_priv = NULL; in dss_uninstall_mgr_ops()
121 dssdev->dss->mgr_ops->set_timings(dssdev->dss->mgr_ops_priv, in dss_mgr_set_timings()
129 dssdev->dss->mgr_ops->set_lcd_config(dssdev->dss->mgr_ops_priv, in dss_mgr_set_lcd_config()
136 return dssdev->dss->mgr_ops->enable(dssdev->dss->mgr_ops_priv, in dss_mgr_enable()
[all …]
Ddss.h180 struct dss_device *dss; member
252 struct dss_debugfs_entry *dss; member
284 dss_debugfs_create_file(struct dss_device *dss, const char *name,
290 dss_debugfs_create_file(struct dss_device *dss, const char *name, in dss_debugfs_create_file() argument
304 int dss_runtime_get(struct dss_device *dss);
305 void dss_runtime_put(struct dss_device *dss);
307 unsigned long dss_get_dispc_clk_rate(struct dss_device *dss);
308 unsigned long dss_get_max_fck_rate(struct dss_device *dss);
309 int dss_dpi_select_source(struct dss_device *dss, int port,
311 void dss_select_hdmi_venc_clk_source(struct dss_device *dss,
[all …]
Dbase.c27 void omapdss_set_dss(struct dss_device *dss) in omapdss_set_dss() argument
29 dss_device = dss; in omapdss_set_dss()
33 struct dispc_device *dispc_get_dispc(struct dss_device *dss) in dispc_get_dispc() argument
35 return dss->dispc; in dispc_get_dispc()
39 const struct dispc_ops *dispc_get_ops(struct dss_device *dss) in dispc_get_ops() argument
41 return dss->dispc_ops; in dispc_get_ops()
171 return dssdev->dss; in omapdss_device_is_connected()
174 int omapdss_device_connect(struct dss_device *dss, in omapdss_device_connect() argument
180 dev_dbg(&dss->pdev->dev, "connect(%s, %s)\n", in omapdss_device_connect()
196 dst->dss = dss; in omapdss_device_connect()
[all …]
Dpll.c28 int dss_pll_register(struct dss_device *dss, struct dss_pll *pll) in dss_pll_register() argument
32 for (i = 0; i < ARRAY_SIZE(dss->plls); ++i) { in dss_pll_register()
33 if (!dss->plls[i]) { in dss_pll_register()
34 dss->plls[i] = pll; in dss_pll_register()
35 pll->dss = dss; in dss_pll_register()
45 struct dss_device *dss = pll->dss; in dss_pll_unregister() local
48 for (i = 0; i < ARRAY_SIZE(dss->plls); ++i) { in dss_pll_unregister()
49 if (dss->plls[i] == pll) { in dss_pll_unregister()
50 dss->plls[i] = NULL; in dss_pll_unregister()
51 pll->dss = NULL; in dss_pll_unregister()
[all …]
Dsdi.c25 struct dss_device *dss; member
68 return dispc_div_calc(ctx->sdi->dss->dispc, fck, in dpi_calc_dss_cb()
100 ok = dss_div_calc(sdi->dss, pclk, ctx.pck_min, in sdi_calc_clock_div()
209 r = dispc_runtime_get(sdi->dss->dispc); in sdi_bridge_enable()
219 r = dss_set_fck_rate(sdi->dss, fck); in sdi_bridge_enable()
236 dispc_mgr_set_clock_div(sdi->dss->dispc, sdi->output.dispc_channel, in sdi_bridge_enable()
239 dss_sdi_init(sdi->dss, sdi->datapairs); in sdi_bridge_enable()
240 r = dss_sdi_enable(sdi->dss); in sdi_bridge_enable()
252 dss_sdi_disable(sdi->dss); in sdi_bridge_enable()
256 dispc_runtime_put(sdi->dss->dispc); in sdi_bridge_enable()
[all …]
Ddpi.c32 struct dss_device *dss; member
66 if (dss_pll_find_by_src(dpi->dss, DSS_CLK_SRC_PLL1_1)) in dpi_get_clk_src_dra7xx()
72 if (dss_pll_find_by_src(dpi->dss, DSS_CLK_SRC_PLL1_3)) in dpi_get_clk_src_dra7xx()
74 if (dss_pll_find_by_src(dpi->dss, DSS_CLK_SRC_PLL2_3)) in dpi_get_clk_src_dra7xx()
80 if (dss_pll_find_by_src(dpi->dss, DSS_CLK_SRC_PLL2_1)) in dpi_get_clk_src_dra7xx()
82 if (dss_pll_find_by_src(dpi->dss, DSS_CLK_SRC_PLL1_3)) in dpi_get_clk_src_dra7xx()
186 return dispc_div_calc(ctx->dpi->dss->dispc, dispc, in dpi_calc_hsdiv_cb()
204 ctx->pck_min, dss_get_max_fck_rate(ctx->dpi->dss), in dpi_calc_pll_cb()
214 return dispc_div_calc(ctx->dpi->dss->dispc, fck, in dpi_calc_dss_cb()
277 ok = dss_div_calc(dpi->dss, pck, ctx->pck_min, in dpi_dss_clk_calc()
[all …]
Domapdss-boot-init.c198 struct device_node *dss; in omapdss_boot_init() local
202 dss = of_find_matching_node(NULL, omapdss_of_match); in omapdss_boot_init()
204 if (dss == NULL || !of_device_is_available(dss)) in omapdss_boot_init()
207 omapdss_walk_device(dss, true); in omapdss_boot_init()
208 omapdss_find_children(dss); in omapdss_boot_init()
225 of_node_put(dss); in omapdss_boot_init()
Dvideo-pll.c59 r = dss_runtime_get(pll->dss); in dss_video_pll_enable()
78 dss_runtime_put(pll->dss); in dss_video_pll_enable()
93 dss_runtime_put(pll->dss); in dss_video_pll_disable()
132 struct dss_pll *dss_video_pll_init(struct dss_device *dss, in dss_video_pll_init() argument
187 r = dss_pll_register(dss, pll); in dss_video_pll_init()
Dhdmi_pll.c128 static int hdmi_init_pll_data(struct dss_device *dss, in hdmi_init_pll_data() argument
154 r = dss_pll_register(dss, pll); in hdmi_init_pll_data()
161 int hdmi_pll_init(struct dss_device *dss, struct platform_device *pdev, in hdmi_pll_init() argument
175 r = hdmi_init_pll_data(dss, pdev, pll); in hdmi_pll_init()
Domapdss.h370 struct dss_device *dss; member
428 void omapdss_set_dss(struct dss_device *dss);
443 int omapdss_device_connect(struct dss_device *dss,
506 int dss_install_mgr_ops(struct dss_device *dss,
509 void dss_uninstall_mgr_ops(struct dss_device *dss);
593 struct dispc_device *dispc_get_dispc(struct dss_device *dss);
594 const struct dispc_ops *dispc_get_ops(struct dss_device *dss);
Dvenc.c251 struct dss_device *dss; member
390 dss_set_venc_output(venc->dss, venc->type); in venc_power_on()
391 dss_set_dac_pwrdn_bgz(venc->dss, 1); in venc_power_on()
419 dss_set_dac_pwrdn_bgz(venc->dss, 0); in venc_power_on()
429 dss_set_dac_pwrdn_bgz(venc->dss, 0); in venc_power_off()
610 dispc_set_tv_pclk(venc->dss->dispc, 13500000); in venc_bridge_mode_set()
683 struct dss_device *dss = dss_get_device(master); in venc_bind() local
688 venc->dss = dss; in venc_bind()
699 venc->debugfs = dss_debugfs_create_file(dss, "venc", venc_dump_regs, in venc_bind()
Dhdmi5.c124 dss_select_hdmi_venc_clk_source(hdmi->dss, DSS_HDMI_M_PCLK); in hdmi_power_on_core()
335 dispc_set_tv_pclk(hdmi->dss->dispc, adjusted_mode->clock * 1000); in hdmi5_bridge_mode_set()
625 struct dss_device *dss = dss_get_device(master); in hdmi5_bind() local
629 hdmi->dss = dss; in hdmi5_bind()
631 r = hdmi_pll_init(dss, hdmi->pdev, &hdmi->pll, &hdmi->wp); in hdmi5_bind()
641 hdmi->debugfs = dss_debugfs_create_file(dss, "hdmi", hdmi_dump_regs, in hdmi5_bind()
Dhdmi4.c120 dss_select_hdmi_venc_clk_source(hdmi->dss, DSS_HDMI_M_PCLK); in hdmi_power_on_core()
337 dispc_set_tv_pclk(hdmi->dss->dispc, adjusted_mode->clock * 1000); in hdmi4_bridge_mode_set()
636 struct dss_device *dss = dss_get_device(master); in hdmi4_bind() local
640 hdmi->dss = dss; in hdmi4_bind()
646 r = hdmi_pll_init(dss, hdmi->pdev, &hdmi->pll, &hdmi->wp); in hdmi4_bind()
660 hdmi->debugfs = dss_debugfs_create_file(dss, "hdmi", hdmi_dump_regs, in hdmi4_bind()
Ddsi.c334 struct dss_device *dss; member
1200 source = dss_get_dsi_clk_source(dsi->dss, dsi->module_id); in dsi_fclk_rate()
1339 dispc_pck_free_enable(dsi->dss->dispc, 1); in dsi_pll_enable()
1344 dispc_pck_free_enable(dsi->dss->dispc, 0); in dsi_pll_enable()
1350 dispc_pck_free_enable(dsi->dss->dispc, 0); in dsi_pll_enable()
1390 dispc_clk_src = dss_get_dispc_clk_source(dsi->dss); in dsi_dump_dsi_clocks()
1391 dsi_clk_src = dss_get_dsi_clk_source(dsi->dss, dsi_module); in dsi_dump_dsi_clocks()
3869 dispc_disable_sidle(dsi->dss->dispc); in dsi_update_screen_dispc()
3902 dispc_enable_sidle(dsi->dss->dispc); in dsi_handle_framedone()
3983 r = dispc_calc_clock_rates(dsi->dss->dispc, fck, &dispc_cinfo); in dsi_configure_dispc_clocks()
[all …]
DMakefile9 omapdss-y := dss.o dispc.o dispc_coefs.o \
Ddispc.c162 struct dss_device *dss; member
3270 src = dss_get_dispc_clk_source(dispc->dss); in dispc_fclk_rate()
3273 r = dss_get_dispc_clk_rate(dispc->dss); in dispc_fclk_rate()
3278 pll = dss_pll_find_by_src(dispc->dss, src); in dispc_fclk_rate()
3298 src = dss_get_lcd_clk_source(dispc->dss, channel); in dispc_mgr_lclk_rate()
3301 r = dss_get_dispc_clk_rate(dispc->dss); in dispc_mgr_lclk_rate()
3306 pll = dss_pll_find_by_src(dispc->dss, src); in dispc_mgr_lclk_rate()
3383 lcd_clk_src = dss_get_lcd_clk_source(dispc->dss, channel); in dispc_dump_clocks_channel()
3407 dispc_clk_src = dss_get_dispc_clk_source(dispc->dss); in dispc_dump_clocks()
3668 lck_max = dss_get_max_fck_rate(dispc->dss); in dispc_div_calc()
[all …]
/drivers/video/fbdev/omap2/omapfb/dss/
Ddss.c95 } dss; variable
115 __raw_writel(val, dss.base + idx.idx); in dss_write_reg()
120 return __raw_readl(dss.base + idx.idx); in dss_read_reg()
124 dss.ctx[(DSS_##reg).idx / sizeof(u32)] = dss_read_reg(DSS_##reg)
126 dss_write_reg(DSS_##reg, dss.ctx[(DSS_##reg).idx / sizeof(u32)])
140 dss.ctx_valid = true; in dss_save_context()
149 if (!dss.ctx_valid) in dss_restore_context()
171 if (!dss.syscon_pll_ctrl) in dss_ctrl_pll_enable()
191 regmap_update_bits(dss.syscon_pll_ctrl, dss.syscon_pll_ctrl_offset, in dss_ctrl_pll_enable()
200 if (!dss.syscon_pll_ctrl) in dss_ctrl_pll_set_control_mux()
[all …]
Domapdss-boot-init.c181 struct device_node *dss, *child; in omapdss_boot_init() local
185 dss = of_find_matching_node(NULL, omapdss_of_match); in omapdss_boot_init()
187 if (dss == NULL || !of_device_is_available(dss)) { in omapdss_boot_init()
188 of_node_put(dss); in omapdss_boot_init()
192 omapdss_walk_device(dss, true); in omapdss_boot_init()
194 for_each_available_child_of_node(dss, child) { in omapdss_boot_init()
DMakefile5 omapdss-y := core.o dss.o dss_features.o dispc.o dispc_coefs.o display.o \
6 output.o dss-of.o pll.o video-pll.o
/drivers/video/fbdev/omap2/omapfb/
DMakefile3 obj-y += dss/
/drivers/gpu/drm/omapdrm/
DMakefile7 obj-y += dss/
Domap_drv.c156 r = omapdss_device_connect(priv->dss, NULL, output); in omap_connect_pipelines()
594 priv->dss = omapdss_get_dss(); in omapdrm_init()
595 priv->dispc = dispc_get_dispc(priv->dss); in omapdrm_init()
596 priv->dispc_ops = dispc_get_ops(priv->dss); in omapdrm_init()
DKconfig14 source "drivers/gpu/drm/omapdrm/dss/Kconfig"
Domap_drv.h48 struct dss_device *dss; member

12