summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/exynos/exynos_drm_iommu.h
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2015-04-03 13:20:23 +0200
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:43:55 +0900
commit17e49e9c2242c35b2069614d007b8322682a4adb (patch)
tree8ee9e6ad67d15a25f62150299ce1abf33e9c0707 /drivers/gpu/drm/exynos/exynos_drm_iommu.h
parent0eb97bad366f9ddb49ae7a099f6d6822844348dc (diff)
temporary: drm/exynos: add support for dma-mapping/iommu framework for ARM64
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_iommu.h')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_iommu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_iommu.h b/drivers/gpu/drm/exynos/exynos_drm_iommu.h
index 35d25889b476..34a5b347866a 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_iommu.h
+++ b/drivers/gpu/drm/exynos/exynos_drm_iommu.h
@@ -33,6 +33,9 @@ static inline bool is_drm_iommu_supported(struct drm_device *drm_dev)
struct device *dev = drm_dev->dev;
return dev->archdata.mapping ? true : false;
+#elif defined(CONFIG_IOMMU_DMA)
+ struct device *dev = drm_dev->dev;
+ return dev->archdata.dma_domain;
#else
return false;
#endif