diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2018-10-12 12:53:41 +0200 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2018-12-04 13:23:17 +0900 |
commit | 29cbf24a4df5c2fa6c6e719598953b5392c00ec0 (patch) | |
tree | bb6977233b0ea66f4f1d38e787181f13b7d2c963 /drivers/gpu/drm/exynos/exynos_drm_drv.h | |
parent | 167bfe534dc2de680ef706dbb903c9a7bfcb2dd8 (diff) | |
download | linux-29cbf24a4df5c2fa6c6e719598953b5392c00ec0.tar.gz linux-29cbf24a4df5c2fa6c6e719598953b5392c00ec0.tar.bz2 linux-29cbf24a4df5c2fa6c6e719598953b5392c00ec0.zip |
drm/exynos: simplify DMA mapping
Moving DMA mapping creation to drm_iommu_attach_device allows to avoid
looping through all components and maintaining DMA device flags.
v2: take care of configurations without IOMMU
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_drv.h')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_drv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index 5e61e707f955..1d4c3c425404 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h @@ -214,6 +214,8 @@ static inline struct device *to_dma_dev(struct drm_device *dev) return priv->dma_dev; } +int exynos_drm_register_dma(struct drm_device *drm, struct device *dev); + #ifdef CONFIG_DRM_EXYNOS_DPI struct drm_encoder *exynos_dpi_probe(struct device *dev); int exynos_dpi_remove(struct drm_encoder *encoder); |