summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-04-14 16:19:04 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-18 18:14:31 -0400
commitb7fca01b0e01544c3a66d2e05a8b99bcb621a004 (patch)
treed83d23a5f2ed2ad0ea30caa2b489b4bd0039b790 /drivers/gpu/nvgpu/gp106
parentb1d303685b384d58064d8b18ec97e1302bcbba88 (diff)
gpu: nvgpu: Scrub gk20a_platform dependencies
Remove gk20a_platform dependencies from gk20a.h. This makes gk20a_platform a Linux platform specific data structure. Add #include for platform_gk20a.h in the source files that still depend on Linux. JIRA NVGPU-16 Change-Id: Ib098accd34a1f5066eb8680c387f9b178169f3f0 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1463547 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106')
-rw-r--r--drivers/gpu/nvgpu/gp106/clk_gp106.c3
-rw-r--r--drivers/gpu/nvgpu/gp106/therm_gp106.c4
-rw-r--r--drivers/gpu/nvgpu/gp106/xve_gp106.c4
3 files changed, 10 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp106/clk_gp106.c b/drivers/gpu/nvgpu/gp106/clk_gp106.c
index e4348e73..4d865664 100644
--- a/drivers/gpu/nvgpu/gp106/clk_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/clk_gp106.c
@@ -23,6 +23,9 @@
23#include <nvgpu/kmem.h> 23#include <nvgpu/kmem.h>
24 24
25#include "gk20a/gk20a.h" 25#include "gk20a/gk20a.h"
26#ifdef CONFIG_DEBUG_FS
27#include "gk20a/platform_gk20a.h"
28#endif
26 29
27#include "clk_gp106.h" 30#include "clk_gp106.h"
28#include "clk/clk_arb.h" 31#include "clk/clk_arb.h"
diff --git a/drivers/gpu/nvgpu/gp106/therm_gp106.c b/drivers/gpu/nvgpu/gp106/therm_gp106.c
index 4f616d8e..d473da96 100644
--- a/drivers/gpu/nvgpu/gp106/therm_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/therm_gp106.c
@@ -12,10 +12,12 @@
12 */ 12 */
13 13
14#include "therm_gp106.h" 14#include "therm_gp106.h"
15#include "therm/thrmpmu.h"
16
15#ifdef CONFIG_DEBUG_FS 17#ifdef CONFIG_DEBUG_FS
16#include <linux/debugfs.h> 18#include <linux/debugfs.h>
19#include "gk20a/platform_gk20a.h"
17#endif 20#endif
18#include "therm/thrmpmu.h"
19 21
20#include <nvgpu/hw/gp106/hw_therm_gp106.h> 22#include <nvgpu/hw/gp106/hw_therm_gp106.h>
21 23
diff --git a/drivers/gpu/nvgpu/gp106/xve_gp106.c b/drivers/gpu/nvgpu/gp106/xve_gp106.c
index 2bd93666..fb0e8a8f 100644
--- a/drivers/gpu/nvgpu/gp106/xve_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/xve_gp106.c
@@ -23,6 +23,10 @@
23#include "gm206/bios_gm206.h" 23#include "gm206/bios_gm206.h"
24#include "gp106/xve_gp106.h" 24#include "gp106/xve_gp106.h"
25 25
26#ifdef CONFIG_DEBUG_FS
27#include "gk20a/platform_gk20a.h"
28#endif
29
26#include <nvgpu/bug.h> 30#include <nvgpu/bug.h>
27 31
28#include <nvgpu/hw/gp106/hw_xp_gp106.h> 32#include <nvgpu/hw/gp106/hw_xp_gp106.h>