summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/driver_common.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-01-24 15:42:57 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-02-15 17:11:46 -0500
commit662c441467c4f251d65840f2097ac4e58ec234ff (patch)
tree6d28a87ee4805bd51ab41fbdb158ee596f9e9fe8 /drivers/gpu/nvgpu/common/linux/driver_common.c
parentb6ab47d39683f607de166fef1111b20d8eda097e (diff)
gpu: nvgpu: Allow disabling CDE functionality
CDE is a Tegra SoC specific feature. Add new config option CONFIG_NVGPU_SUPPORT_CDE and #ifdef all CDE specific code with it. JIRA NVGPU-4 Change-Id: I6f0b0047d6ba2b5c36c2eb9b8a1514776741f5b5 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1648002 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/driver_common.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/driver_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/driver_common.c b/drivers/gpu/nvgpu/common/linux/driver_common.c
index 66078a85..b3333e37 100644
--- a/drivers/gpu/nvgpu/common/linux/driver_common.c
+++ b/drivers/gpu/nvgpu/common/linux/driver_common.c
@@ -148,7 +148,9 @@ static void nvgpu_init_pm_vars(struct gk20a *g)
148 g->aggressive_sync_destroy = platform->aggressive_sync_destroy; 148 g->aggressive_sync_destroy = platform->aggressive_sync_destroy;
149 g->aggressive_sync_destroy_thresh = platform->aggressive_sync_destroy_thresh; 149 g->aggressive_sync_destroy_thresh = platform->aggressive_sync_destroy_thresh;
150 g->has_syncpoints = platform->has_syncpoints; 150 g->has_syncpoints = platform->has_syncpoints;
151#ifdef CONFIG_NVGPU_SUPPORT_CDE
151 g->has_cde = platform->has_cde; 152 g->has_cde = platform->has_cde;
153#endif
152 g->ptimer_src_freq = platform->ptimer_src_freq; 154 g->ptimer_src_freq = platform->ptimer_src_freq;
153 g->support_pmu = support_gk20a_pmu(dev_from_gk20a(g)); 155 g->support_pmu = support_gk20a_pmu(dev_from_gk20a(g));
154 g->can_railgate = platform->can_railgate_init; 156 g->can_railgate = platform->can_railgate_init;