summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/clk/clk_mclk.h
diff options
context:
space:
mode:
authorDavid Nieto <dmartineznie@nvidia.com>2016-08-19 20:09:35 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:56:50 -0500
commit905f1c0392bf244b321f56f82661eeb2fe00ee05 (patch)
treed525a6d5554b537e0a34ca7917c90364176dbb2e /drivers/gpu/nvgpu/clk/clk_mclk.h
parent4a94ce451b0352ce67e11a2971bbbd75c2e58df1 (diff)
gpu: nvgpu: parse and execute mclk shadow script
* Parsing of shadow registers from VBIOS * Partial devinit engine interpreter implementation JIRA DNVGPU-117 Change-Id: I42179748889f17d674ad0a986e81c418b3b8df11 Signed-off-by: David Nieto <dmartineznie@nvidia.com> Reviewed-on: http://git-master/r/1214956 Reviewed-on: http://git-master/r/1237293 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_mclk.h')
-rw-r--r--drivers/gpu/nvgpu/clk/clk_mclk.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_mclk.h b/drivers/gpu/nvgpu/clk/clk_mclk.h
index c3261eac..edb7eb78 100644
--- a/drivers/gpu/nvgpu/clk/clk_mclk.h
+++ b/drivers/gpu/nvgpu/clk/clk_mclk.h
@@ -19,13 +19,14 @@
19enum gk20a_mclk_speed { 19enum gk20a_mclk_speed {
20 gk20a_mclk_low_speed, 20 gk20a_mclk_low_speed,
21 gk20a_mclk_mid_speed, 21 gk20a_mclk_mid_speed,
22 gk20a_mclk_high_speed 22 gk20a_mclk_high_speed,
23}; 23};
24 24
25struct clk_mclk_state { 25struct clk_mclk_state {
26 enum gk20a_mclk_speed speed; 26 enum gk20a_mclk_speed speed;
27 struct mutex mclk_mutex; 27 struct mutex mclk_mutex;
28 void *vreg_buf; 28 void *vreg_buf;
29 bool init;
29 30
30 /* function pointers */ 31 /* function pointers */
31 int (*change)(struct gk20a *g, enum gk20a_mclk_speed speed); 32 int (*change)(struct gk20a *g, enum gk20a_mclk_speed speed);