summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
diff options
context:
space:
mode:
authorSeshendra Gadagottu <sgadagottu@nvidia.com>2015-10-13 14:39:43 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-11-19 17:31:49 -0500
commitacde16dd16012004efa1edb9dc9813f0c62622e4 (patch)
tree415603313667448d1325fe610b41d49c564c49c1 /drivers/gpu/nvgpu/gk20a/platform_gk20a.h
parentd3cf5811996388a1d7501da72fff46ee19e5e7c7 (diff)
gpu: nvgpu: scaling driver update
Update scaling driver to support to differnt clock frameworks. Bug 200147662 Reviewed-on: http://git-master/r/816929 (cherry picked from commit cbd4cb575fb2d27870089797ff2a8f22540b87e8) Change-Id: Ie50304b4a593d74bd43b271005cc9616fdb52a6e Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/834748 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
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);