Home
last modified time | relevance | path

Searched refs:arcpgu (Results 1 – 5 of 5) sorted by relevance

/drivers/gpu/drm/arc/
Darcpgu_crtc.c30 struct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc); in arc_pgu_set_pxl_fmt() local
45 reg_ctrl = arc_pgu_read(arcpgu, ARCPGU_REG_CTRL); in arc_pgu_set_pxl_fmt()
50 arc_pgu_write(arcpgu, ARCPGU_REG_CTRL, reg_ctrl); in arc_pgu_set_pxl_fmt()
65 struct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc); in arc_pgu_crtc_mode_valid() local
69 rate = clk_round_rate(arcpgu->clk, clk_rate); in arc_pgu_crtc_mode_valid()
78 struct arcpgu_drm_private *arcpgu = crtc_to_arcpgu_priv(crtc); in arc_pgu_crtc_mode_set_nofb() local
82 arc_pgu_write(arcpgu, ARCPGU_REG_FMT, in arc_pgu_crtc_mode_set_nofb()
85 arc_pgu_write(arcpgu, ARCPGU_REG_HSYNC, in arc_pgu_crtc_mode_set_nofb()
89 arc_pgu_write(arcpgu, ARCPGU_REG_VSYNC, in arc_pgu_crtc_mode_set_nofb()
93 arc_pgu_write(arcpgu, ARCPGU_REG_ACTIVE, in arc_pgu_crtc_mode_set_nofb()
[all …]
Darcpgu_drv.c48 struct arcpgu_drm_private *arcpgu; in arcpgu_load() local
53 arcpgu = devm_kzalloc(&pdev->dev, sizeof(*arcpgu), GFP_KERNEL); in arcpgu_load()
54 if (arcpgu == NULL) in arcpgu_load()
57 drm->dev_private = arcpgu; in arcpgu_load()
59 arcpgu->clk = devm_clk_get(drm->dev, "pxlclk"); in arcpgu_load()
60 if (IS_ERR(arcpgu->clk)) in arcpgu_load()
61 return PTR_ERR(arcpgu->clk); in arcpgu_load()
66 arcpgu->regs = devm_ioremap_resource(&pdev->dev, res); in arcpgu_load()
67 if (IS_ERR(arcpgu->regs)) in arcpgu_load()
68 return PTR_ERR(arcpgu->regs); in arcpgu_load()
[all …]
Darcpgu.h21 static inline void arc_pgu_write(struct arcpgu_drm_private *arcpgu, in arc_pgu_write() argument
24 iowrite32(value, arcpgu->regs + reg); in arc_pgu_write()
27 static inline u32 arc_pgu_read(struct arcpgu_drm_private *arcpgu, in arc_pgu_read() argument
30 return ioread32(arcpgu->regs + reg); in arc_pgu_read()
DMakefile2 arcpgu-y := arcpgu_crtc.o arcpgu_hdmi.o arcpgu_sim.o arcpgu_drv.o
3 obj-$(CONFIG_DRM_ARCPGU) += arcpgu.o
DKconfig10 If M is selected the module will be called arcpgu.