summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/clk/clk_mclk.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_mclk.h')
-rw-r--r--drivers/gpu/nvgpu/clk/clk_mclk.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_mclk.h b/drivers/gpu/nvgpu/clk/clk_mclk.h
index 64eee5ac..4918b917 100644
--- a/drivers/gpu/nvgpu/clk/clk_mclk.h
+++ b/drivers/gpu/nvgpu/clk/clk_mclk.h
@@ -16,6 +16,14 @@
16 16
17#include <nvgpu/lock.h> 17#include <nvgpu/lock.h>
18 18
19#define GP106_MCLK_LOW_SPEED 0
20#define GP106_MCLK_MID_SPEED 1
21#define GP106_MCLK_HIGH_SPEED 2
22#define GP106_MCLK_NUM_SPEED 3
23
24#define GP106_MEM_CONFIG_GDDR5_PG418 0
25#define GP106_MEM_CONFIG_GDDR5_PG419 1
26
19enum gk20a_mclk_speed { 27enum gk20a_mclk_speed {
20 gk20a_mclk_low_speed, 28 gk20a_mclk_low_speed,
21 gk20a_mclk_mid_speed, 29 gk20a_mclk_mid_speed,
@@ -23,7 +31,7 @@ enum gk20a_mclk_speed {
23}; 31};
24 32
25struct clk_mclk_state { 33struct clk_mclk_state {
26 enum gk20a_mclk_speed speed; 34 u32 speed;
27 struct nvgpu_mutex mclk_lock; 35 struct nvgpu_mutex mclk_lock;
28 struct nvgpu_mutex data_lock; 36 struct nvgpu_mutex data_lock;
29 37
@@ -33,9 +41,6 @@ struct clk_mclk_state {
33 void *vreg_buf; 41 void *vreg_buf;
34 bool init; 42 bool init;
35 43
36 /* function pointers */
37 int (*change)(struct gk20a *g, u16 val);
38
39#ifdef CONFIG_DEBUG_FS 44#ifdef CONFIG_DEBUG_FS
40 s64 switch_max; 45 s64 switch_max;
41 s64 switch_min; 46 s64 switch_min;