diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/clk_gk20a.h | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/clk_gk20a.h b/drivers/gpu/nvgpu/gk20a/clk_gk20a.h index 65f82263..e8c14e43 100644 --- a/drivers/gpu/nvgpu/gk20a/clk_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/clk_gk20a.h | |||
@@ -97,6 +97,7 @@ struct clk_gk20a { | |||
97 | bool clk_hw_on; | 97 | bool clk_hw_on; |
98 | bool debugfs_set; | 98 | bool debugfs_set; |
99 | int pll_poweron_uv; | 99 | int pll_poweron_uv; |
100 | unsigned long dvfs_safe_max_freq; | ||
100 | }; | 101 | }; |
101 | 102 | ||
102 | #if defined(CONFIG_COMMON_CLK) | 103 | #if defined(CONFIG_COMMON_CLK) |
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 37e2e185..4fc626e8 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -31,6 +31,7 @@ struct nvgpu_mem_alloc_tracker; | |||
31 | struct dbg_profiler_object_data; | 31 | struct dbg_profiler_object_data; |
32 | struct ecc_gk20a; | 32 | struct ecc_gk20a; |
33 | struct gk20a_debug_output; | 33 | struct gk20a_debug_output; |
34 | struct nvgpu_clk_pll_debug_data; | ||
34 | 35 | ||
35 | #include <linux/sched.h> | 36 | #include <linux/sched.h> |
36 | #include <nvgpu/lock.h> | 37 | #include <nvgpu/lock.h> |
@@ -777,6 +778,7 @@ struct gpu_ops { | |||
777 | void (*set_irqmask)(struct gk20a *g); | 778 | void (*set_irqmask)(struct gk20a *g); |
778 | } pmu; | 779 | } pmu; |
779 | struct { | 780 | struct { |
781 | int (*init_debugfs)(struct gk20a *g); | ||
780 | void (*disable_slowboot)(struct gk20a *g); | 782 | void (*disable_slowboot)(struct gk20a *g); |
781 | int (*init_clk_support)(struct gk20a *g); | 783 | int (*init_clk_support)(struct gk20a *g); |
782 | int (*suspend_clk_support)(struct gk20a *g); | 784 | int (*suspend_clk_support)(struct gk20a *g); |
@@ -791,6 +793,11 @@ struct gpu_ops { | |||
791 | unsigned long (*get_maxrate)(struct clk_gk20a *clk); | 793 | unsigned long (*get_maxrate)(struct clk_gk20a *clk); |
792 | int (*prepare_enable)(struct clk_gk20a *clk); | 794 | int (*prepare_enable)(struct clk_gk20a *clk); |
793 | void (*disable_unprepare)(struct clk_gk20a *clk); | 795 | void (*disable_unprepare)(struct clk_gk20a *clk); |
796 | int (*get_voltage)(struct clk_gk20a *clk, u64 *val); | ||
797 | int (*get_gpcclk_clock_counter)(struct clk_gk20a *clk, u64 *val); | ||
798 | int (*pll_reg_write)(struct gk20a *g, u32 reg, u32 val); | ||
799 | int (*get_pll_debug_data)(struct gk20a *g, | ||
800 | struct nvgpu_clk_pll_debug_data *d); | ||
794 | } clk; | 801 | } clk; |
795 | struct { | 802 | struct { |
796 | u32 (*get_arbiter_clk_domains)(struct gk20a *g); | 803 | u32 (*get_arbiter_clk_domains)(struct gk20a *g); |