diff options
author | Alex Frid <afrid@nvidia.com> | 2014-08-15 01:44:33 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:05 -0400 |
commit | 5cd313e20221c93008f1d56ac223d6e08966505e (patch) | |
tree | 939aaaec6b7cbdc146782ce76e4d6328f4e62fe1 /drivers/gpu/nvgpu/gk20a/clk_gk20a.h | |
parent | 834a7ba4e1a80b1841e189eaff4747e7e62e8374 (diff) |
gpu: nvgpu: Update GM20b GPCPLL operations
Moved detection of idempotent GPCPLL operations from set_pll_freq()
function to its callers, e.g., explicitly check when enable operation
is called on already enabled PLL, instead of passing same frequency
to set_pll_freq() in such case. Similarly explicitly check when disable
operation is called on already disabled PLL.
Also moved check for GPU powered on from set_pll_freq() to callers,
and skip call to set interface if not.
Added last GPCPLL configuration structure updated after successful
completion of set_pll_freq() function.
Bug 1450787
Change-Id: I8c14b8cab2a8548e98c9b2d223c465c68fb87b61
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/488027
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/clk_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/clk_gk20a.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/clk_gk20a.h b/drivers/gpu/nvgpu/gk20a/clk_gk20a.h index e6d14f74..274194be 100644 --- a/drivers/gpu/nvgpu/gk20a/clk_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/clk_gk20a.h | |||
@@ -52,6 +52,7 @@ struct clk_gk20a { | |||
52 | struct gk20a *g; | 52 | struct gk20a *g; |
53 | struct clk *tegra_clk; | 53 | struct clk *tegra_clk; |
54 | struct pll gpc_pll; | 54 | struct pll gpc_pll; |
55 | struct pll gpc_pll_last; | ||
55 | u32 pll_delay; /* default PLL settle time */ | 56 | u32 pll_delay; /* default PLL settle time */ |
56 | struct mutex clk_mutex; | 57 | struct mutex clk_mutex; |
57 | bool sw_ready; | 58 | bool sw_ready; |