summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/clk_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/clk_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/clk_gk20a.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/clk_gk20a.h b/drivers/gpu/nvgpu/gk20a/clk_gk20a.h
index 255c1a7c..c766fc46 100644
--- a/drivers/gpu/nvgpu/gk20a/clk_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/clk_gk20a.h
@@ -77,6 +77,13 @@ struct clk_gk20a {
77 bool debugfs_set; 77 bool debugfs_set;
78}; 78};
79 79
80struct gpu_ops;
81#ifdef CONFIG_TEGRA_CLK_FRAMEWORK
82void gk20a_init_clk_ops(struct gpu_ops *gops);
83#else
84static inline void gk20a_init_clk_ops(struct gpu_ops *gops) {}
85#endif
86
80/* APIs used for both GK20A and GM20B */ 87/* APIs used for both GK20A and GM20B */
81unsigned long gk20a_clk_get_rate(struct gk20a *g); 88unsigned long gk20a_clk_get_rate(struct gk20a *g);
82int gk20a_clk_set_rate(struct gk20a *g, unsigned long rate); 89int gk20a_clk_set_rate(struct gk20a *g, unsigned long rate);