diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2017-06-21 14:13:22 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-30 11:46:34 -0400 |
commit | c12eb17340c90086f378c239da3d9015e7878f0c (patch) | |
tree | de0d8d3886bbc11e4b8524bda0d35de3e4e8638d /drivers/gpu/nvgpu/gk20a/gk20a.c | |
parent | a89c3876c71f486cf5d5bca588f12af02d1b15be (diff) |
gpu: nvgpu: move mclk related functions to clk
Move mclk related functions be moved to clk structure instead of
pmu. We want to keep pmu only for basic pmu interaction and
split clk, lpwr etc.
Bug 1921094
Change-Id: I32394bc0e6d3657dfbd34dbcf19c9af56c12e194
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master/r/1506586
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 7106ea03..65197aca 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -137,8 +137,8 @@ int gk20a_prepare_poweroff(struct gk20a *g) | |||
137 | ret |= gk20a_mm_suspend(g); | 137 | ret |= gk20a_mm_suspend(g); |
138 | ret |= gk20a_fifo_suspend(g); | 138 | ret |= gk20a_fifo_suspend(g); |
139 | 139 | ||
140 | if (g->ops.pmu.mclk_deinit) | 140 | if (g->ops.clk.mclk_deinit) |
141 | g->ops.pmu.mclk_deinit(g); | 141 | g->ops.clk.mclk_deinit(g); |
142 | 142 | ||
143 | /* Disable GPCPLL */ | 143 | /* Disable GPCPLL */ |
144 | if (g->ops.clk.suspend_clk_support) | 144 | if (g->ops.clk.suspend_clk_support) |
@@ -273,8 +273,8 @@ int gk20a_finalize_poweron(struct gk20a *g) | |||
273 | goto done; | 273 | goto done; |
274 | } | 274 | } |
275 | 275 | ||
276 | if (g->ops.pmu.mclk_init) { | 276 | if (g->ops.clk.mclk_init) { |
277 | err = g->ops.pmu.mclk_init(g); | 277 | err = g->ops.clk.mclk_init(g); |
278 | if (err) { | 278 | if (err) { |
279 | nvgpu_err(g, "failed to set mclk"); | 279 | nvgpu_err(g, "failed to set mclk"); |
280 | /* Indicate error dont goto done */ | 280 | /* Indicate error dont goto done */ |