Skip to content

Commit e5507d2

Browse files
committed
drm/ingenic: Set DMA descriptor chain address in probe
The address of the DMA descriptor never changes. It can therefore be set in the probe function. v2-v3: No change Signed-off-by: Paul Cercueil <paul@crapouillou.net> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20200716163846.174790-6-paul@crapouillou.net
1 parent 1f7596f commit e5507d2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎drivers/gpu/drm/ingenic/ingenic-drm-drv.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,6 @@ static void ingenic_drm_crtc_atomic_flush(struct drm_crtc *crtc,
358358
ingenic_drm_crtc_update_ctrl(priv, finfo);
359359

360360
clk_set_rate(priv->pix_clk, state->adjusted_mode.clock * 1000);
361-
362-
regmap_write(priv->map, JZ_REG_LCD_DA0, priv->dma_hwdesc->next);
363361
}
364362

365363
if (event) {
@@ -757,6 +755,9 @@ static int ingenic_drm_probe(struct platform_device *pdev)
757755
}
758756
}
759757

758+
/* Set address of our DMA descriptor chain */
759+
regmap_write(priv->map, JZ_REG_LCD_DA0, priv->dma_hwdesc_phys);
760+
760761
ret = drm_dev_register(drm, 0);
761762
if (ret) {
762763
dev_err(dev, "Failed to register DRM driver\n");

0 commit comments

Comments
 (0)