diff options
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_mclk.h')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_mclk.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_mclk.h b/drivers/gpu/nvgpu/clk/clk_mclk.h index f86893f7..c3261eac 100644 --- a/drivers/gpu/nvgpu/clk/clk_mclk.h +++ b/drivers/gpu/nvgpu/clk/clk_mclk.h | |||
@@ -14,6 +14,34 @@ | |||
14 | #ifndef _CLKMCLK_H_ | 14 | #ifndef _CLKMCLK_H_ |
15 | #define _CLKMCLK_H_ | 15 | #define _CLKMCLK_H_ |
16 | 16 | ||
17 | int clk_mclkseq_build_prgm_gddr5(struct gk20a *g); | 17 | #include <linux/mutex.h> |
18 | |||
19 | enum gk20a_mclk_speed { | ||
20 | gk20a_mclk_low_speed, | ||
21 | gk20a_mclk_mid_speed, | ||
22 | gk20a_mclk_high_speed | ||
23 | }; | ||
24 | |||
25 | struct clk_mclk_state { | ||
26 | enum gk20a_mclk_speed speed; | ||
27 | struct mutex mclk_mutex; | ||
28 | void *vreg_buf; | ||
29 | |||
30 | /* function pointers */ | ||
31 | int (*change)(struct gk20a *g, enum gk20a_mclk_speed speed); | ||
32 | |||
33 | #ifdef CONFIG_DEBUG_FS | ||
34 | s64 switch_max; | ||
35 | s64 switch_min; | ||
36 | u64 switch_num; | ||
37 | s64 switch_avg; | ||
38 | s64 switch_std; | ||
39 | bool debugfs_set; | ||
40 | #endif | ||
41 | }; | ||
42 | |||
43 | int clk_mclkseq_init_mclk_gddr5(struct gk20a *g); | ||
44 | int clk_mclkseq_change_mclk_gddr5(struct gk20a *g, | ||
45 | enum gk20a_mclk_speed speed); | ||
18 | 46 | ||
19 | #endif | 47 | #endif |