diff options
author | Sumit Singh <sumsingh@nvidia.com> | 2015-01-04 03:00:33 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 21:57:41 -0400 |
commit | 86637dcef9a978d21bae9978ce3f6863a45fc973 (patch) | |
tree | 98a00bd140aa0454d188cf897c2c6c69f748e7f4 /drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c | |
parent | 182730599e3636b337b76fa49adbc1a5b243667f (diff) |
gpu: nvgpu: Add DT support for gpu power-domain
First, defining a new structure to support gk20a
power domain. Then making necessary modifications
to add so as to add DT support for gpu power-domain.
bug 200070810
Change-Id: I29e1c24b181e14743d3969103abfd1882d171f07
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/668973
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c b/drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c index ee176b8b..78132320 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a_generic.c | |||
@@ -112,19 +112,19 @@ static int gk20a_generic_probe(struct platform_device *dev) | |||
112 | 112 | ||
113 | static int gk20a_generic_late_probe(struct platform_device *dev) | 113 | static int gk20a_generic_late_probe(struct platform_device *dev) |
114 | { | 114 | { |
115 | struct gk20a_platform *platform = gk20a_get_platform(dev); | 115 | struct generic_pm_domain *gpd = dev_to_genpd(&dev->dev); |
116 | 116 | ||
117 | /* Make gk20a power domain a subdomain of mc */ | 117 | /* Make gk20a power domain a subdomain of host1x */ |
118 | tegra_pd_add_sd(&platform->g->pd); | 118 | tegra_pd_add_sd(gpd); |
119 | 119 | ||
120 | return 0; | 120 | return 0; |
121 | } | 121 | } |
122 | 122 | ||
123 | static int gk20a_generic_remove(struct platform_device *dev) | 123 | static int gk20a_generic_remove(struct platform_device *dev) |
124 | { | 124 | { |
125 | struct gk20a_platform *platform = gk20a_get_platform(dev); | 125 | struct generic_pm_domain *gpd = dev_to_genpd(&dev->dev); |
126 | 126 | ||
127 | tegra_pd_remove_sd(&platform->g->pd); | 127 | tegra_pd_remove_sd(gpd); |
128 | 128 | ||
129 | return 0; | 129 | return 0; |
130 | } | 130 | } |