Home
last modified time | relevance | path

Searched full:dispc (Results 1 – 25 of 69) sorted by relevance

123

/linux-6.12.1/drivers/gpu/drm/omapdrm/dss/
Ddispc.c10 #define DSS_SUBSYS_NAME "DISPC"
37 #include "dispc.h"
41 /* DISPC */
50 #define REG_GET(dispc, idx, start, end) \ argument
51 FLD_GET(dispc_read_reg(dispc, idx), start, end)
53 #define REG_FLD_MOD(dispc, idx, val, start, end) \ argument
54 dispc_write_reg(dispc, idx, \
55 FLD_MOD(dispc_read_reg(dispc, idx), val, start, end))
57 /* DISPC has feature id */
102 int (*calc_scaling)(struct dispc_device *dispc,
[all …]
Ddss.h259 struct dispc_device *dispc; member
388 /* DISPC */
389 void dispc_dump_clocks(struct dispc_device *dispc, struct seq_file *s);
391 int dispc_runtime_get(struct dispc_device *dispc);
392 void dispc_runtime_put(struct dispc_device *dispc);
394 int dispc_get_num_ovls(struct dispc_device *dispc);
395 int dispc_get_num_mgrs(struct dispc_device *dispc);
397 const u32 *dispc_ovl_get_color_modes(struct dispc_device *dispc,
400 void dispc_ovl_get_max_size(struct dispc_device *dispc, u16 *width, u16 *height);
401 bool dispc_ovl_color_mode_supported(struct dispc_device *dispc,
[all …]
Dsdi.c68 return dispc_div_calc(ctx->sdi->dss->dispc, fck, in dpi_calc_dss_cb()
209 r = dispc_runtime_get(sdi->dss->dispc); in sdi_bridge_enable()
227 * normally write them to DISPC registers when enabling the output. in sdi_bridge_enable()
232 * It seems just writing to the DISPC register is enough, and we don't in sdi_bridge_enable()
236 dispc_mgr_set_clock_div(sdi->dss->dispc, sdi->output.dispc_channel, in sdi_bridge_enable()
256 dispc_runtime_put(sdi->dss->dispc); in sdi_bridge_enable()
269 dispc_runtime_put(sdi->dss->dispc); in sdi_bridge_disable()
Ddpi.c99 * would also be used for DISPC fclk. Meaning, when the DPI output is in dpi_get_clk_src()
100 * disabled, DISPC clock will be disabled, and TV out will stop. in dpi_get_clk_src()
178 static bool dpi_calc_hsdiv_cb(int m_dispc, unsigned long dispc, in dpi_calc_hsdiv_cb() argument
184 ctx->pll_cinfo.clkout[ctx->clkout_idx] = dispc; in dpi_calc_hsdiv_cb()
186 return dispc_div_calc(ctx->dpi->dss->dispc, dispc, in dpi_calc_hsdiv_cb()
214 return dispc_div_calc(ctx->dpi->dss->dispc, fck, in dpi_calc_dss_cb()
494 r = dispc_runtime_get(dpi->dss->dispc); in dpi_bridge_enable()
528 dispc_runtime_put(dpi->dss->dispc); in dpi_bridge_enable()
546 dispc_runtime_put(dpi->dss->dispc); in dpi_bridge_disable()
/linux-6.12.1/drivers/gpu/drm/tidss/
Dtidss_dispc.c414 static void dispc_write(struct dispc_device *dispc, u16 reg, u32 val) in dispc_write() argument
416 iowrite32(val, dispc->base_common + reg); in dispc_write()
419 static u32 dispc_read(struct dispc_device *dispc, u16 reg) in dispc_read() argument
421 return ioread32(dispc->base_common + reg); in dispc_read()
425 void dispc_vid_write(struct dispc_device *dispc, u32 hw_plane, u16 reg, u32 val) in dispc_vid_write() argument
427 void __iomem *base = dispc->base_vid[hw_plane]; in dispc_vid_write()
432 static u32 dispc_vid_read(struct dispc_device *dispc, u32 hw_plane, u16 reg) in dispc_vid_read() argument
434 void __iomem *base = dispc->base_vid[hw_plane]; in dispc_vid_read()
439 static void dispc_ovr_write(struct dispc_device *dispc, u32 hw_videoport, in dispc_ovr_write() argument
442 void __iomem *base = dispc->base_ovr[hw_videoport]; in dispc_ovr_write()
[all …]
Dtidss_dispc.h97 void dispc_set_irqenable(struct dispc_device *dispc, dispc_irq_t mask);
98 dispc_irq_t dispc_read_and_clear_irqstatus(struct dispc_device *dispc);
100 void dispc_ovr_set_plane(struct dispc_device *dispc, u32 hw_plane,
102 void dispc_ovr_enable_layer(struct dispc_device *dispc,
105 void dispc_vp_prepare(struct dispc_device *dispc, u32 hw_videoport,
107 void dispc_vp_enable(struct dispc_device *dispc, u32 hw_videoport,
109 void dispc_vp_disable(struct dispc_device *dispc, u32 hw_videoport);
110 void dispc_vp_unprepare(struct dispc_device *dispc, u32 hw_videoport);
111 bool dispc_vp_go_busy(struct dispc_device *dispc, u32 hw_videoport);
112 void dispc_vp_go(struct dispc_device *dispc, u32 hw_videoport);
[all …]
Dtidss_crtc.c37 busy = dispc_vp_go_busy(tidss->dispc, tcrtc->hw_videoport); in tidss_crtc_finish_page_flip()
91 struct dispc_device *dispc = tidss->dispc; in tidss_crtc_atomic_check() local
104 ok = dispc_vp_mode_valid(dispc, hw_videoport, mode); in tidss_crtc_atomic_check()
111 return dispc_vp_bus_check(dispc, hw_videoport, crtc_state); in tidss_crtc_atomic_check()
152 dispc_ovr_set_plane(tidss->dispc, tplane->hw_plane_id, in tidss_crtc_position_planes()
157 dispc_ovr_enable_layer(tidss->dispc, tcrtc->hw_videoport, layer, in tidss_crtc_position_planes()
185 if (WARN_ON(dispc_vp_go_busy(tidss->dispc, tcrtc->hw_videoport))) in tidss_crtc_atomic_flush()
193 dispc_vp_setup(tidss->dispc, tcrtc->hw_videoport, crtc->state, false); in tidss_crtc_atomic_flush()
201 dispc_vp_go(tidss->dispc, tcrtc->hw_videoport); in tidss_crtc_atomic_flush()
227 r = dispc_vp_set_clk_rate(tidss->dispc, tcrtc->hw_videoport, in tidss_crtc_atomic_enable()
[all …]
Dtidss_drv.c58 return dispc_runtime_suspend(tidss->dispc); in tidss_pm_runtime_suspend()
68 r = dispc_runtime_resume(tidss->dispc); in tidss_pm_runtime_resume()
145 dev_err(dev, "failed to initialize dispc: %d\n", ret); in tidss_probe()
156 dispc_runtime_resume(tidss->dispc); in tidss_probe()
200 dispc_runtime_suspend(tidss->dispc); in tidss_probe()
224 dispc_runtime_suspend(tidss->dispc); in tidss_remove()
229 /* devm allocated dispc goes away with the dev so mark it NULL */ in tidss_remove()
Dtidss_plane.c101 ret = dispc_plane_check(tidss->dispc, hw_plane, new_plane_state, in tidss_plane_atomic_check()
122 dispc_plane_enable(tidss->dispc, tplane->hw_plane_id, false); in tidss_plane_atomic_update()
128 dispc_plane_setup(tidss->dispc, tplane->hw_plane_id, new_state, hw_videoport); in tidss_plane_atomic_update()
140 dispc_plane_enable(tidss->dispc, tplane->hw_plane_id, true); in tidss_plane_atomic_enable()
152 dispc_plane_enable(tidss->dispc, tplane->hw_plane_id, false); in tidss_plane_atomic_disable()
Dtidss_irq.c18 /* call with wait_lock and dispc runtime held */
23 dispc_set_irqenable(tidss->dispc, tidss->irq_mask); in tidss_irq_update()
63 irqstatus = dispc_read_and_clear_irqstatus(tidss->dispc); in tidss_irq_handler()
/linux-6.12.1/drivers/gpu/drm/omapdrm/
Domap_irq.c18 /* call with wait_lock and dispc runtime held */
32 dispc_write_irqenable(priv->dispc, irqmask); in omap_irq_update()
86 dispc_mgr_get_framedone_irq(priv->dispc, channel); in omap_irq_enable_framedone()
123 priv->irq_mask |= dispc_mgr_get_vsync_irq(priv->dispc, in omap_irq_enable_vblank()
149 priv->irq_mask &= ~dispc_mgr_get_vsync_irq(priv->dispc, in omap_irq_disable_vblank()
214 irqstatus = dispc_read_irqstatus(priv->dispc); in omap_irq_handler()
215 dispc_clear_irqstatus(priv->dispc, irqstatus); in omap_irq_handler()
216 dispc_read_irqstatus(priv->dispc); /* flush posted write */ in omap_irq_handler()
224 if (irqstatus & dispc_mgr_get_vsync_irq(priv->dispc, channel)) { in omap_irq_handler()
229 if (irqstatus & dispc_mgr_get_sync_lost_irq(priv->dispc, channel)) in omap_irq_handler()
[all …]
Domap_crtc.c105 dispc_mgr_enable(priv->dispc, channel, true); in omap_crtc_dss_start_update()
130 dispc_mgr_enable(priv->dispc, channel, enable); in omap_crtc_set_enabled()
143 framedone_irq = dispc_mgr_get_framedone_irq(priv->dispc, in omap_crtc_set_enabled()
145 vsync_irq = dispc_mgr_get_vsync_irq(priv->dispc, channel); in omap_crtc_set_enabled()
152 * FRAMEDONE to know that DISPC has finished with the output. in omap_crtc_set_enabled()
165 dispc_mgr_enable(priv->dispc, channel, enable); in omap_crtc_set_enabled()
187 dispc_mgr_set_timings(priv->dispc, omap_crtc->channel, in omap_crtc_dss_enable()
221 dispc_mgr_set_lcd_config(priv->dispc, omap_crtc->channel, in omap_crtc_dss_set_lcd_config()
287 * If the dispc is busy we're racing the flush operation. Try again on in omap_crtc_vblank_irq()
290 if (dispc_mgr_go_busy(priv->dispc, omap_crtc->channel)) { in omap_crtc_vblank_irq()
[all …]
Domap_plane.c140 ret = dispc_ovl_setup(priv->dispc, ovl_id, &info, in omap_plane_atomic_update()
146 dispc_ovl_enable(priv->dispc, ovl_id, false); in omap_plane_atomic_update()
150 dispc_ovl_enable(priv->dispc, ovl_id, true); in omap_plane_atomic_update()
153 ret = dispc_ovl_setup(priv->dispc, r_ovl_id, &r_info, in omap_plane_atomic_update()
159 dispc_ovl_enable(priv->dispc, r_ovl_id, false); in omap_plane_atomic_update()
160 dispc_ovl_enable(priv->dispc, ovl_id, false); in omap_plane_atomic_update()
164 dispc_ovl_enable(priv->dispc, r_ovl_id, true); in omap_plane_atomic_update()
224 dispc_ovl_get_max_size(priv->dispc, &width, &height); in omap_plane_atomic_check()
241 * phase in dispc. in omap_plane_atomic_check()
316 if (!dispc_ovl_color_mode_supported(priv->dispc, omap_state->overlay->id, in omap_plane_atomic_check()
[all …]
DKconfig34 dispc, dsi, hdmi and rfbi.
44 <debugfs>/omapdss/dispc_irq for DISPC interrupts, and
114 With this you can make sure that DISPC FCK is at least
119 DISPC FCK. However, the FCK will at minimum be
Domap_drv.c73 dispc_runtime_get(priv->dispc); in omap_atomic_commit_tail()
79 /* With the current dss dispc implementation we have to enable in omap_atomic_commit_tail()
80 * the new modeset before we can commit planes. The dispc ovl in omap_atomic_commit_tail()
87 * interrupt. The dispc implementation should be fixed so that in omap_atomic_commit_tail()
117 dispc_runtime_put(priv->dispc); in omap_atomic_commit_tail()
367 unsigned int num_planes = dispc_get_num_ovls(priv->dispc); in omap_modeset_init_properties()
396 int num_ovls = dispc_get_num_ovls(priv->dispc); in omap_modeset_init()
397 int num_mgrs = dispc_get_num_mgrs(priv->dispc); in omap_modeset_init()
475 * Populate the pipeline lookup table by DISPC channel. Only one display in omap_modeset_init()
691 priv->dispc = dispc_get_dispc(priv->dss); in omapdrm_init()
[all …]
Domap_overlay.c50 if (!dispc_ovl_color_mode_supported(priv->dispc, in omap_plane_find_free_overlay()
147 dispc_ovl_enable(priv->dispc, overlay->id, false); in omap_overlay_update_state()
178 u32 num_overlays = dispc_get_num_ovls(priv->dispc); in omap_hwoverlays_init()
185 caps = dispc_ovl_get_caps(priv->dispc, hw_plane_ids[i]); in omap_hwoverlays_init()
/linux-6.12.1/drivers/video/fbdev/omap2/omapfb/dss/
Ddispc.c3 * linux/drivers/video/omap2/dss/dispc.c
12 #define DSS_SUBSYS_NAME "DISPC"
37 #include "dispc.h"
39 /* DISPC */
84 /* revert to the OMAP4 mechanism of DISPC Smart Standby operation */
127 } dispc; variable
253 __raw_writel(val, dispc.base + idx); in dispc_write_reg()
258 return __raw_readl(dispc.base + idx); in dispc_read_reg()
274 spin_lock_irqsave(&dispc.control_lock, flags); in mgr_fld_write()
279 spin_unlock_irqrestore(&dispc.control_lock, flags); in mgr_fld_write()
[all …]
DKconfig24 dispc, dsi, hdmi and rfbi.
33 <debugfs>/omapdss/dispc_irq for DISPC interrupts, and
91 With this you can make sure that DISPC FCK is at least
96 DISPC FCK. However, the FCK will at minimum be
DMakefile5 omapdss-y := core.o dss.o dss_features.o dispc.o dispc_coefs.o display.o \
9 dispc-compat.o display-sysfs.o
/linux-6.12.1/Documentation/devicetree/bindings/display/ti/
Dti,dra7-dss.txt29 - DISPC
39 DISPC
43 - compatible: "ti,dra7-dispc"
46 - interrupts: the DISPC interrupt
51 - max-memory-bandwidth: Input memory (from main memory to dispc) bandwidth limit
Dti,omap5-dss.txt18 - DISPC
28 DISPC
32 - compatible: "ti,omap5-dispc"
35 - interrupts: the DISPC interrupt
40 - max-memory-bandwidth: Input memory (from main memory to dispc) bandwidth limit
Dti,omap2-dss.txt22 DISPC
26 - compatible: "ti,omap2-dispc"
29 - interrupts: the DISPC interrupt
32 - max-memory-bandwidth: Input memory (from main memory to dispc) bandwidth limit
Dti,omap4-dss.txt18 - DISPC
28 DISPC
32 - compatible: "ti,omap4-dispc"
35 - interrupts: the DISPC interrupt
40 - max-memory-bandwidth: Input memory (from main memory to dispc) bandwidth limit
Dti,omap3-dss.txt29 DISPC
33 - compatible: "ti,omap3-dispc"
36 - interrupts: the DISPC interrupt
41 - max-memory-bandwidth: Input memory (from main memory to dispc) bandwidth limit
Dti,omap-dss.txt11 The OMAP Display Subsystem (DSS) hardware consists of DSS Core, DISPC module and
12 a number of encoder modules. All DSS versions contain DSS Core and DISPC, but
18 DISPC is the display controller, which reads pixels from the memory and outputs
59 dispc@58001000 {
60 compatible = "ti,omap4-dispc";

123