diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-05-16 08:26:52 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-24 07:55:47 -0400 |
commit | 1eace20876b4136a1edf8287a9f37a693218efa8 (patch) | |
tree | 97f9b06306134792c4b33542f2c6888c5238e4c5 /drivers/gpu/nvgpu/gm20b/clk_gm20b.h | |
parent | 8f4a590cf22fa9691953e9be0dca18b399228167 (diff) |
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 <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1483091
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/clk_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/clk_gm20b.h | 13 |
1 files changed, 10 insertions, 3 deletions
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 @@ | |||
23 | 23 | ||
24 | void gm20b_init_clk_ops(struct gpu_ops *gops); | 24 | void gm20b_init_clk_ops(struct gpu_ops *gops); |
25 | 25 | ||
26 | #ifdef CONFIG_COMMON_CLK | 26 | int gm20b_init_clk_setup_sw(struct gk20a *g); |
27 | int gm20b_register_gpcclk(struct gk20a *g); | 27 | |
28 | #endif | 28 | int gm20b_clk_prepare(struct clk_gk20a *clk); |
29 | void gm20b_clk_unprepare(struct clk_gk20a *clk); | ||
30 | int gm20b_clk_is_prepared(struct clk_gk20a *clk); | ||
31 | unsigned long gm20b_recalc_rate(struct clk_gk20a *clk, unsigned long parent_rate); | ||
32 | int gm20b_gpcclk_set_rate(struct clk_gk20a *clk, unsigned long rate, | ||
33 | unsigned long parent_rate); | ||
34 | long gm20b_round_rate(struct clk_gk20a *clk, unsigned long rate, | ||
35 | unsigned long *parent_rate); | ||
29 | 36 | ||
30 | #endif /* _NVHOST_CLK_GM20B_H_ */ | 37 | #endif /* _NVHOST_CLK_GM20B_H_ */ |