diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c index 36052ee3..4dd5d46e 100644 --- a/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GP10B Tegra Platform Interface | 2 | * GP10B Tegra Platform Interface |
3 | * | 3 | * |
4 | * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -97,7 +97,7 @@ int gp10b_tegra_get_clocks(struct device *dev) | |||
97 | return 0; | 97 | return 0; |
98 | } | 98 | } |
99 | 99 | ||
100 | static void gp10b_tegra_scale_init(struct device *dev) | 100 | void gp10b_tegra_scale_init(struct device *dev) |
101 | { | 101 | { |
102 | struct gk20a_platform *platform = gk20a_get_platform(dev); | 102 | struct gk20a_platform *platform = gk20a_get_platform(dev); |
103 | struct gk20a_scale_profile *profile = platform->g->scale_profile; | 103 | struct gk20a_scale_profile *profile = platform->g->scale_profile; |
@@ -265,7 +265,7 @@ int gp10b_tegra_reset_deassert(struct device *dev) | |||
265 | return ret; | 265 | return ret; |
266 | } | 266 | } |
267 | 267 | ||
268 | static void gp10b_tegra_prescale(struct device *dev) | 268 | void gp10b_tegra_prescale(struct device *dev) |
269 | { | 269 | { |
270 | struct gk20a *g = get_gk20a(dev); | 270 | struct gk20a *g = get_gk20a(dev); |
271 | u32 avg = 0; | 271 | u32 avg = 0; |
@@ -277,7 +277,7 @@ static void gp10b_tegra_prescale(struct device *dev) | |||
277 | gk20a_dbg_fn("done"); | 277 | gk20a_dbg_fn("done"); |
278 | } | 278 | } |
279 | 279 | ||
280 | static void gp10b_tegra_postscale(struct device *pdev, | 280 | void gp10b_tegra_postscale(struct device *pdev, |
281 | unsigned long freq) | 281 | unsigned long freq) |
282 | { | 282 | { |
283 | struct gk20a_platform *platform = gk20a_get_platform(pdev); | 283 | struct gk20a_platform *platform = gk20a_get_platform(pdev); |
@@ -286,7 +286,7 @@ static void gp10b_tegra_postscale(struct device *pdev, | |||
286 | unsigned long emc_rate; | 286 | unsigned long emc_rate; |
287 | 287 | ||
288 | gk20a_dbg_fn(""); | 288 | gk20a_dbg_fn(""); |
289 | if (profile && !gp10b_tegra_is_railgated(pdev)) { | 289 | if (profile && !platform->is_railgated(pdev)) { |
290 | unsigned long emc_scale; | 290 | unsigned long emc_scale; |
291 | 291 | ||
292 | if (freq <= gp10b_freq_table[0]) | 292 | if (freq <= gp10b_freq_table[0]) |
@@ -306,7 +306,7 @@ static void gp10b_tegra_postscale(struct device *pdev, | |||
306 | gk20a_dbg_fn("done"); | 306 | gk20a_dbg_fn("done"); |
307 | } | 307 | } |
308 | 308 | ||
309 | static long gp10b_round_clk_rate(struct device *dev, unsigned long rate) | 309 | long gp10b_round_clk_rate(struct device *dev, unsigned long rate) |
310 | { | 310 | { |
311 | struct gk20a *g = get_gk20a(dev); | 311 | struct gk20a *g = get_gk20a(dev); |
312 | struct gk20a_scale_profile *profile = g->scale_profile; | 312 | struct gk20a_scale_profile *profile = g->scale_profile; |
@@ -321,7 +321,7 @@ static long gp10b_round_clk_rate(struct device *dev, unsigned long rate) | |||
321 | return freq_table[max_states - 1]; | 321 | return freq_table[max_states - 1]; |
322 | } | 322 | } |
323 | 323 | ||
324 | static int gp10b_clk_get_freqs(struct device *dev, | 324 | int gp10b_clk_get_freqs(struct device *dev, |
325 | unsigned long **freqs, int *num_freqs) | 325 | unsigned long **freqs, int *num_freqs) |
326 | { | 326 | { |
327 | struct gk20a_platform *platform = gk20a_get_platform(dev); | 327 | struct gk20a_platform *platform = gk20a_get_platform(dev); |