From 6d2d3a3d9345661bc14af06a8b4462495205b743 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 16 May 2017 19:03:02 +0530 Subject: 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. format Remove and from clk_gm20b.c Remove 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 Reviewed-on: http://git-master/r/1483092 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h') 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 { unsigned long (*measure_freq)(struct gk20a *g, u32 api_domain); unsigned long (*get_rate)(struct gk20a *g, u32 api_domain); int (*set_rate)(struct gk20a *g, u32 api_domain, unsigned long rate); + unsigned long (*get_fmax_at_vmin_safe)(struct clk_gk20a *clk); + u32 (*get_ref_clock_rate)(struct gk20a *g); + int (*predict_mv_at_hz_cur_tfloor)(struct clk_gk20a *clk, + unsigned long rate); + unsigned long (*get_maxrate)(struct clk_gk20a *clk); + int (*prepare_enable)(struct clk_gk20a *clk); + void (*disable_unprepare)(struct clk_gk20a *clk); } clk; struct { u32 (*get_arbiter_clk_domains)(struct gk20a *g); -- cgit v1.2.2