summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c
index 5cb82687..00fd386e 100644
--- a/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c
+++ b/drivers/gpu/nvgpu/os/linux/platform_gp10b_tegra.c
@@ -13,6 +13,7 @@
13 * more details. 13 * more details.
14 */ 14 */
15 15
16#include <linux/version.h>
16#include <linux/of_platform.h> 17#include <linux/of_platform.h>
17#include <linux/debugfs.h> 18#include <linux/debugfs.h>
18#include <linux/dma-buf.h> 19#include <linux/dma-buf.h>
@@ -385,6 +386,18 @@ struct gk20a_platform gp10b_tegra_platform = {
385 .ldiv_slowdown_factor_init = SLOWDOWN_FACTOR_FPDIV_BY16, 386 .ldiv_slowdown_factor_init = SLOWDOWN_FACTOR_FPDIV_BY16,
386 387
387 /* power management configuration */ 388 /* power management configuration */
389#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
390 .can_railgate_init = false,
391 .enable_elpg = false,
392 .can_elpg_init = false,
393 .enable_blcg = false,
394 .enable_slcg = false,
395 .enable_elcg = false,
396 .can_slcg = false,
397 .can_blcg = false,
398 .can_elcg = false,
399 .enable_aelpg = false,
400#else
388 .can_railgate_init = true, 401 .can_railgate_init = true,
389 .enable_elpg = true, 402 .enable_elpg = true,
390 .can_elpg_init = true, 403 .can_elpg_init = true,
@@ -395,6 +408,7 @@ struct gk20a_platform gp10b_tegra_platform = {
395 .can_blcg = true, 408 .can_blcg = true,
396 .can_elcg = true, 409 .can_elcg = true,
397 .enable_aelpg = true, 410 .enable_aelpg = true,
411#endif
398 .enable_perfmon = true, 412 .enable_perfmon = true,
399 413
400 /* ptimer src frequency in hz*/ 414 /* ptimer src frequency in hz*/