From 1eace20876b4136a1edf8287a9f37a693218efa8 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 16 May 2017 17:56:52 +0530 Subject: gpu: nvgpu: move gm20b clock register to platform file We currently register gm20b clock operations gm20b_clk_ops in function gm20b_register_gpcclk() which is in clk_gm20b.c Since this is common clock framework and hence linux dependency, move this clock registration to platform specific file Note that all the clock operations remain in clk_gm20b.c. APIs in platform file will eventually call operations in clk_gm20b.c Jira NVGPU-49 Change-Id: Ib0b0d9f4719b196d764825a7dddb08f1fbd7a567 Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/1483091 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gm20b/clk_gm20b.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gm20b/clk_gm20b.h') diff --git a/drivers/gpu/nvgpu/gm20b/clk_gm20b.h b/drivers/gpu/nvgpu/gm20b/clk_gm20b.h index 5746165e..f7912345 100644 --- a/drivers/gpu/nvgpu/gm20b/clk_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/clk_gm20b.h @@ -23,8 +23,15 @@ void gm20b_init_clk_ops(struct gpu_ops *gops); -#ifdef CONFIG_COMMON_CLK -int gm20b_register_gpcclk(struct gk20a *g); -#endif +int gm20b_init_clk_setup_sw(struct gk20a *g); + +int gm20b_clk_prepare(struct clk_gk20a *clk); +void gm20b_clk_unprepare(struct clk_gk20a *clk); +int gm20b_clk_is_prepared(struct clk_gk20a *clk); +unsigned long gm20b_recalc_rate(struct clk_gk20a *clk, unsigned long parent_rate); +int gm20b_gpcclk_set_rate(struct clk_gk20a *clk, unsigned long rate, + unsigned long parent_rate); +long gm20b_round_rate(struct clk_gk20a *clk, unsigned long rate, + unsigned long *parent_rate); #endif /* _NVHOST_CLK_GM20B_H_ */ -- cgit v1.2.2