summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorArto Merilainen <amerilainen@nvidia.com>2014-04-11 10:46:07 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:09:46 -0400
commitd224ca20089a9f05bd72d83990c190ad0c1e73c8 (patch)
treea33fce050a9c0d0bfd9c6d43af40b82b668d58a0 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent596aa6e592eef797770575833811303d5a5a65dd (diff)
gpu: nvgpu: Get host1x device from DTS
Currently the gpu driver assumes that the GPU is a child of host1x. This is an invalid assumption and therefore we need to get the host1x device from device tree based on nvidia,host1x property. Bug 1311528 Bug 1434573 Change-Id: I097e39369aaa15ab6652cd23f353f88f7c2b9c48 Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: http://git-master/r/395664 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index b8de8744..fc488a28 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -209,6 +209,7 @@ struct gpu_ops {
209 209
210struct gk20a { 210struct gk20a {
211 struct platform_device *dev; 211 struct platform_device *dev;
212 struct platform_device *host1x_dev;
212 213
213 struct resource *reg_mem; 214 struct resource *reg_mem;
214 void __iomem *regs; 215 void __iomem *regs;