summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp106')
-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