summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/clk_gm20b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/clk_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/clk_gm20b.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c
index 906e805a..3fa5c1d3 100644
--- a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c
@@ -1158,6 +1158,11 @@ static int gm20b_init_gpc_pll(struct gk20a *g)
1158 1158
1159 clk->gpc_pll.id = GK20A_GPC_PLL; 1159 clk->gpc_pll.id = GK20A_GPC_PLL;
1160 clk->gpc_pll.clk_in = clk_get_rate(ref) / KHZ; 1160 clk->gpc_pll.clk_in = clk_get_rate(ref) / KHZ;
1161 if (clk->gpc_pll.clk_in == 0) {
1162 gk20a_err(dev_from_gk20a(g),
1163 "GPCPLL reference clock is zero");
1164 return -EINVAL;
1165 }
1161 1166
1162 gm20b_calc_dvfs_safe_max_freq(c); 1167 gm20b_calc_dvfs_safe_max_freq(c);
1163 clk->gpc_pll.PL = (dvfs_safe_max_freq == 0) ? 0 : 1168 clk->gpc_pll.PL = (dvfs_safe_max_freq == 0) ? 0 :