summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/platform_gk20a.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
index c1444985..7314d09d 100644
--- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
@@ -154,6 +154,18 @@ struct gk20a_platform {
154 /* Called to check state of device */ 154 /* Called to check state of device */
155 bool (*is_railgated)(struct platform_device *dev); 155 bool (*is_railgated)(struct platform_device *dev);
156 156
157 /* get supported frequency list */
158 int (*get_clk_freqs)(struct platform_device *pdev,
159 unsigned long **freqs, int *num_freqs);
160
161 /* clk related supported functions */
162 unsigned long (*clk_get_rate)(struct platform_device *pdev);
163 long (*clk_round_rate)(struct platform_device *pdev,
164 unsigned long rate);
165 int (*clk_set_rate)(struct platform_device *pdev,
166 unsigned long rate);
167
168
157 /* Postscale callback is called after frequency change */ 169 /* Postscale callback is called after frequency change */
158 void (*postscale)(struct platform_device *pdev, 170 void (*postscale)(struct platform_device *pdev,
159 unsigned long freq); 171 unsigned long freq);