summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2017-05-16 09:33:02 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-24 07:55:53 -0400
commit6d2d3a3d9345661bc14af06a8b4462495205b743 (patch)
tree0d8317f78658296c3ecb85027dc3529918516222 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent1eace20876b4136a1edf8287a9f37a693218efa8 (diff)
gpu: nvgpu: move linux clk calls to tegra specific file
clk_gm20b.c has number of calls specific to linux and tegra-soc environment In order to unify the driver, move all of those calls to tegra/linux specific file tegra/linux/clk.c All the clk_*() and tegra_dvfs_*() calls are now abstracted behind GPU's clock operations and shoule be accessed using g->ops.clk.<API> format Remove <linux/clk.h> and <soc/tegra/tegra-dvfs.h> from clk_gm20b.c Remove <linux/version.h> from clk_gm20b.c too since we only support k4.4 and higher version only Jira NVGPU-49 Change-Id: Ib26811e0423bbd3868b9a46e662b80a8ca088dc5 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1483092 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 217b1186..cca414a2 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -762,6 +762,13 @@ struct gpu_ops {
762 unsigned long (*measure_freq)(struct gk20a *g, u32 api_domain); 762 unsigned long (*measure_freq)(struct gk20a *g, u32 api_domain);
763 unsigned long (*get_rate)(struct gk20a *g, u32 api_domain); 763 unsigned long (*get_rate)(struct gk20a *g, u32 api_domain);
764 int (*set_rate)(struct gk20a *g, u32 api_domain, unsigned long rate); 764 int (*set_rate)(struct gk20a *g, u32 api_domain, unsigned long rate);
765 unsigned long (*get_fmax_at_vmin_safe)(struct clk_gk20a *clk);
766 u32 (*get_ref_clock_rate)(struct gk20a *g);
767 int (*predict_mv_at_hz_cur_tfloor)(struct clk_gk20a *clk,
768 unsigned long rate);
769 unsigned long (*get_maxrate)(struct clk_gk20a *clk);
770 int (*prepare_enable)(struct clk_gk20a *clk);
771 void (*disable_unprepare)(struct clk_gk20a *clk);
765 } clk; 772 } clk;
766 struct { 773 struct {
767 u32 (*get_arbiter_clk_domains)(struct gk20a *g); 774 u32 (*get_arbiter_clk_domains)(struct gk20a *g);