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>
This commit is contained in:
Thomas Fleury
2017-06-21 11:13:22 -07:00
committed by mobile promotions
parent a89c3876c7
commit c12eb17340
6 changed files with 16 additions and 16 deletions

View File

@@ -137,8 +137,8 @@ int gk20a_prepare_poweroff(struct gk20a *g)
ret |= gk20a_mm_suspend(g);
ret |= gk20a_fifo_suspend(g);
if (g->ops.pmu.mclk_deinit)
g->ops.pmu.mclk_deinit(g);
if (g->ops.clk.mclk_deinit)
g->ops.clk.mclk_deinit(g);
/* Disable GPCPLL */
if (g->ops.clk.suspend_clk_support)
@@ -273,8 +273,8 @@ int gk20a_finalize_poweron(struct gk20a *g)
goto done;
}
if (g->ops.pmu.mclk_init) {
err = g->ops.pmu.mclk_init(g);
if (g->ops.clk.mclk_init) {
err = g->ops.clk.mclk_init(g);
if (err) {
nvgpu_err(g, "failed to set mclk");
/* Indicate error dont goto done */