diff options
author | Vijayakumar <vsubbu@nvidia.com> | 2016-09-16 09:26:22 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:56:50 -0500 |
commit | c7fbd76e7101b7dedc8c0f04437288d1d6b78adc (patch) | |
tree | 6d1ab41af52a481ddeb148307a69113582569edd /drivers/gpu/nvgpu/clk/clk_prog.h | |
parent | 3c351f5bb2d04c1f70c72f3f2fd758bbb340877c (diff) |
gpu: nvgpu: create function to program coreclk
JIRA DNVGPU-123
now a function can be called with GPC2CLK value
It will take care calculating slave clock values
and calling VF inject to program clock
Made programming of boot clock code to use this
newly created function.
Change-Id: I74de7e9d98e379e94175ed2d9745ce3ab6c70691
Signed-off-by: Vijayakumar <vsubbu@nvidia.com>
Reviewed-on: http://git-master/r/1221976
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1235056
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_prog.h')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_prog.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_prog.h b/drivers/gpu/nvgpu/clk/clk_prog.h index be92b3fc..60711b4c 100644 --- a/drivers/gpu/nvgpu/clk/clk_prog.h +++ b/drivers/gpu/nvgpu/clk/clk_prog.h | |||
@@ -32,6 +32,11 @@ typedef u32 vf_lookup(struct gk20a *g, struct clk_pmupstate *pclk, | |||
32 | u8 *slave_clk_domain_idx, u16 *pclkmhz, | 32 | u8 *slave_clk_domain_idx, u16 *pclkmhz, |
33 | u32 *pvoltuv, u8 rail); | 33 | u32 *pvoltuv, u8 rail); |
34 | 34 | ||
35 | typedef int get_slaveclk(struct gk20a *g, struct clk_pmupstate *pclk, | ||
36 | struct clk_prog_1x_master *p1xmaster, | ||
37 | u8 slave_clk_domain_idx, u16 *pclkmhz, | ||
38 | u16 masterclkmhz); | ||
39 | |||
35 | typedef u32 get_fpoints(struct gk20a *g, struct clk_pmupstate *pclk, | 40 | typedef u32 get_fpoints(struct gk20a *g, struct clk_pmupstate *pclk, |
36 | struct clk_prog_1x_master *p1xmaster, | 41 | struct clk_prog_1x_master *p1xmaster, |
37 | u32 *pfpointscount, | 42 | u32 *pfpointscount, |
@@ -65,6 +70,7 @@ struct clk_prog_1x_master { | |||
65 | vf_flatten *vfflatten; | 70 | vf_flatten *vfflatten; |
66 | vf_lookup *vflookup; | 71 | vf_lookup *vflookup; |
67 | get_fpoints *getfpoints; | 72 | get_fpoints *getfpoints; |
73 | get_slaveclk *getslaveclk; | ||
68 | }; | 74 | }; |
69 | 75 | ||
70 | struct clk_prog_1x_master_ratio { | 76 | struct clk_prog_1x_master_ratio { |