summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/clk_gp106.c
diff options
context:
space:
mode:
authorMahantesh Kumbar <mkumbar@nvidia.com>2016-09-27 05:24:50 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:56:50 -0500
commitaf637c81fe6360dbe81373b6f1e5dbdd3ca35536 (patch)
tree871f1f4ed8d23bb8496ef38711769a715c114db8 /drivers/gpu/nvgpu/gp106/clk_gp106.c
parent741d78ec45f6c48348743617ba5ae7163c95e49a (diff)
gpu: nvgpu: Update volt pwm source & raw period
- calculate raw period as per pwm source - update pwm source for logic & sram rails. JIRA DNVGPU-123 Change-Id: I50b41d51b6aba760710700522dced7859f815463 Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: http://git-master/r/1227626 (cherry picked from commit 6eb5a235dd7bf9031ef1bcfadd6312a2f8758fd4) Reviewed-on: http://git-master/r/1244663 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/clk_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/clk_gp106.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/clk_gp106.c b/drivers/gpu/nvgpu/gp106/clk_gp106.c
index 4bf03661..1dd3922a 100644
--- a/drivers/gpu/nvgpu/gp106/clk_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/clk_gp106.c
@@ -36,7 +36,12 @@ static int clk_gp106_debugfs_init(struct gk20a *g);
36#endif 36#endif
37 37
38#define NUM_NAMEMAPS 4 38#define NUM_NAMEMAPS 4
39#define XTAL4X_KHZ 108000
39 40
41static u32 gp106_crystal_clk_hz(struct gk20a *g)
42{
43 return (XTAL4X_KHZ * 1000);
44}
40static int gp106_init_clk_support(struct gk20a *g) { 45static int gp106_init_clk_support(struct gk20a *g) {
41 struct clk_gk20a *clk = &g->clk; 46 struct clk_gk20a *clk = &g->clk;
42 u32 err = 0; 47 u32 err = 0;
@@ -221,6 +226,7 @@ err_out:
221 226
222void gp106_init_clk_ops(struct gpu_ops *gops) { 227void gp106_init_clk_ops(struct gpu_ops *gops) {
223 gops->clk.init_clk_support = gp106_init_clk_support; 228 gops->clk.init_clk_support = gp106_init_clk_support;
229 gops->clk.get_crystal_clk_hz = gp106_crystal_clk_hz;
224} 230}
225 231
226 232