diff options
author | Vijayakumar <vsubbu@nvidia.com> | 2016-09-12 13:06:33 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:56:50 -0500 |
commit | 3c351f5bb2d04c1f70c72f3f2fd758bbb340877c (patch) | |
tree | cdaaf5547d6a2663111ba3dadb60d723f5833683 /drivers/gpu/nvgpu/clk/clk_domain.h | |
parent | 1b1090512020369df18dbe36336ac5a85d2cd693 (diff) |
gpu: nvgpu: add function to retrieve clk points
JIRA DNVGPU-123
Function will copy possible clock points for
a given master clock domain to pointer passed.
pointer with NULL value and count of zero can be passed
to query number of clock points for a given domain so that
memory can be allocated and function called again to
fill clock points
Change-Id: Iec6206f23789980036be99793599e934bd221035
Reviewed-on: http://git-master/r/1218912
(cherry picked from commit 9219697bff1e12deb605325055a02a7b387996e9)
Signed-off-by: Vijayakumar <vsubbu@nvidia.com>
Reviewed-on: http://git-master/r/1235055
Reviewed-by: Thomas Fleury <tfleury@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_domain.h')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_domain.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_domain.h b/drivers/gpu/nvgpu/clk/clk_domain.h index 07976a2a..eeb7c256 100644 --- a/drivers/gpu/nvgpu/clk/clk_domain.h +++ b/drivers/gpu/nvgpu/clk/clk_domain.h | |||
@@ -33,6 +33,11 @@ typedef u32 clkproglink(struct gk20a *g, struct clk_pmupstate *pclk, | |||
33 | typedef u32 clkvfsearch(struct gk20a *g, struct clk_pmupstate *pclk, | 33 | typedef u32 clkvfsearch(struct gk20a *g, struct clk_pmupstate *pclk, |
34 | struct clk_domain *pdomain, u16 *clkmhz, | 34 | struct clk_domain *pdomain, u16 *clkmhz, |
35 | u32 *voltuv, u8 rail); | 35 | u32 *voltuv, u8 rail); |
36 | |||
37 | typedef u32 clkgetfpoints(struct gk20a *g, struct clk_pmupstate *pclk, | ||
38 | struct clk_domain *pdomain, u32 *pfpointscount, | ||
39 | u16 *pfreqpointsinmhz, u8 rail); | ||
40 | |||
36 | struct clk_domains { | 41 | struct clk_domains { |
37 | struct boardobjgrp_e32 super; | 42 | struct boardobjgrp_e32 super; |
38 | u8 n_num_entries; | 43 | u8 n_num_entries; |
@@ -61,6 +66,7 @@ struct clk_domain { | |||
61 | u8 usage; | 66 | u8 usage; |
62 | clkproglink *clkdomainclkproglink; | 67 | clkproglink *clkdomainclkproglink; |
63 | clkvfsearch *clkdomainclkvfsearch; | 68 | clkvfsearch *clkdomainclkvfsearch; |
69 | clkgetfpoints *clkdomainclkgetfpoints; | ||
64 | }; | 70 | }; |
65 | 71 | ||
66 | struct clk_domain_3x { | 72 | struct clk_domain_3x { |