diff options
author | Alexandre Courbot <acourbot@nvidia.com> | 2015-09-04 19:59:31 +0900 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-11-03 14:57:28 +1000 |
commit | 51f04d6e2278fab0fbe99c664a7bfece3d5db309 (patch) | |
tree | ceec0335ddb7c3fe975d8eafef65c4bee140c9cc /drm/nouveau/nouveau_drm.c | |
parent | d72b4e0442c71266bcd75ff33609a53adaac3642 (diff) | |
download | nouveau-51f04d6e2278fab0fbe99c664a7bfece3d5db309.tar.gz |
platform: allow to specify the IOMMU bit
Current Tegra code taking advantage of the IOMMU assumes a hardcoded
value for the IOMMU bit. Make it a platform property instead for
flexibility.
v2 (Ben Skeggs): remove nvkm dependence on drm structures
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drm/nouveau/nouveau_drm.c')
-rw-r--r-- | drm/nouveau/nouveau_drm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drm/nouveau/nouveau_drm.c b/drm/nouveau/nouveau_drm.c index f93266582..1d3ee5179 100644 --- a/drm/nouveau/nouveau_drm.c +++ b/drm/nouveau/nouveau_drm.c @@ -1028,13 +1028,14 @@ nouveau_drm_pci_driver = { }; struct drm_device * -nouveau_platform_device_create(struct platform_device *pdev, +nouveau_platform_device_create(const struct nvkm_device_tegra_func *func, + struct platform_device *pdev, struct nvkm_device **pdevice) { struct drm_device *drm; int err; - err = nvkm_device_tegra_new(pdev, nouveau_config, nouveau_debug, + err = nvkm_device_tegra_new(func, pdev, nouveau_config, nouveau_debug, true, true, ~0ULL, pdevice); if (err) goto err_free; |