summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/clk/clk_prog.h
diff options
context:
space:
mode:
authorVijayakumar <vsubbu@nvidia.com>2016-09-12 13:06:33 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:56:50 -0500
commit3c351f5bb2d04c1f70c72f3f2fd758bbb340877c (patch)
treecdaaf5547d6a2663111ba3dadb60d723f5833683 /drivers/gpu/nvgpu/clk/clk_prog.h
parent1b1090512020369df18dbe36336ac5a85d2cd693 (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_prog.h')
-rw-r--r--drivers/gpu/nvgpu/clk/clk_prog.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_prog.h b/drivers/gpu/nvgpu/clk/clk_prog.h
index 979d327d..be92b3fc 100644
--- a/drivers/gpu/nvgpu/clk/clk_prog.h
+++ b/drivers/gpu/nvgpu/clk/clk_prog.h
@@ -32,6 +32,12 @@ 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
35typedef u32 get_fpoints(struct gk20a *g, struct clk_pmupstate *pclk,
36 struct clk_prog_1x_master *p1xmaster,
37 u32 *pfpointscount,
38 u16 **ppfreqpointsinmhz, u8 rail);
39
40
35struct clk_progs { 41struct clk_progs {
36 struct boardobjgrp_e255 super; 42 struct boardobjgrp_e255 super;
37 u8 slave_entry_count; 43 u8 slave_entry_count;
@@ -58,6 +64,7 @@ struct clk_prog_1x_master {
58 union ctrl_clk_clk_prog_1x_master_source_data source_data; 64 union ctrl_clk_clk_prog_1x_master_source_data source_data;
59 vf_flatten *vfflatten; 65 vf_flatten *vfflatten;
60 vf_lookup *vflookup; 66 vf_lookup *vflookup;
67 get_fpoints *getfpoints;
61}; 68};
62 69
63struct clk_prog_1x_master_ratio { 70struct clk_prog_1x_master_ratio {