diff options
author | Thierry Reding <treding@nvidia.com> | 2017-11-14 16:11:28 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2017-12-21 14:52:36 +0100 |
commit | 41c3068cc2fd0ce179b910c4500934786e8156ba (patch) | |
tree | 9803afebc037c7d8bdc3bf03ea20dc684d0186f8 /drivers/gpu/host1x/dev.h | |
parent | drm/tegra: Implement zpos property (diff) | |
download | linux-41c3068cc2fd0ce179b910c4500934786e8156ba.tar.xz linux-41c3068cc2fd0ce179b910c4500934786e8156ba.zip |
gpu: host1x: Use IOMMU groups
Use IOMMU groups to attach the host1x device to its IOMMU domain. This
is not strictly necessary because the domain isn't shared with any other
device, but it makes the code consistent with how IOMMU is handled in
other drivers and provides an easy way to detect when no IOMMU has been
attached via device tree.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x/dev.h')
-rw-r--r-- | drivers/gpu/host1x/dev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/dev.h b/drivers/gpu/host1x/dev.h index 502769726480..43e9fabb43a1 100644 --- a/drivers/gpu/host1x/dev.h +++ b/drivers/gpu/host1x/dev.h @@ -117,6 +117,7 @@ struct host1x { struct clk *clk; struct reset_control *rst; + struct iommu_group *group; struct iommu_domain *domain; struct iova_domain iova; dma_addr_t iova_end; |