summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeshendra Gadagottu <sgadagottu@nvidia.com>2016-06-02 12:52:05 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-06-03 13:08:12 -0400
commit608101dbfa1c99069ca2abe9d70a204419f8e719 (patch)
treecf51a3be0a246051902badfd0a1c6baa923cfce5
parente8b408ef27e9b46498db27cf4f893a3bf64376d1 (diff)
gpu: nvgpu: use correct config for t19x
Use TEGRA_19x_GPU config instead of ARCH_TEGRA_19x_SOC for t19x functionality. This config will defined only when gpu repository for t19x is available. Bug 1757988 Change-Id: I53421f31cbed49a2fb24085c150599c78b8158c0 Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/1158183 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/Makefile4
-rw-r--r--include/uapi/linux/nvgpu.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/Makefile b/drivers/gpu/nvgpu/Makefile
index 13a35f76..b0bb4176 100644
--- a/drivers/gpu/nvgpu/Makefile
+++ b/drivers/gpu/nvgpu/Makefile
@@ -16,7 +16,7 @@ ccflags-y += -I$(srctree)/../nvgpu-t18x/include
16ccflags-y += -I$(srctree)/../nvgpu-t18x/include/uapi 16ccflags-y += -I$(srctree)/../nvgpu-t18x/include/uapi
17endif 17endif
18 18
19ifeq ($(CONFIG_ARCH_TEGRA_19x_SOC),y) 19ifeq ($(CONFIG_TEGRA_19x_GPU),y)
20ccflags-y += -I$(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu 20ccflags-y += -I$(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu
21ccflags-y += -I$(srctree)/../nvgpu-t19x/include 21ccflags-y += -I$(srctree)/../nvgpu-t19x/include
22ccflags-y += -I$(srctree)/../nvgpu-t19x/include/uapi 22ccflags-y += -I$(srctree)/../nvgpu-t19x/include/uapi
@@ -117,7 +117,7 @@ include $(srctree)/../nvgpu-t18x/drivers/gpu/nvgpu/Makefile
117endif 117endif
118endif 118endif
119 119
120ifeq ($(CONFIG_ARCH_TEGRA_19x_SOC),y) 120ifeq ($(CONFIG_TEGRA_19x_GPU),y)
121ifneq ($(wildcard $(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu/Makefile),) 121ifneq ($(wildcard $(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu/Makefile),)
122include $(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu/Makefile 122include $(srctree)/../nvgpu-t19x/drivers/gpu/nvgpu/Makefile
123endif 123endif
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index 8b4c4549..03173339 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -94,7 +94,7 @@ struct nvgpu_gpu_zbc_query_table_args {
94#include <linux/nvgpu-t18x.h> 94#include <linux/nvgpu-t18x.h>
95#endif 95#endif
96 96
97#ifdef CONFIG_ARCH_TEGRA_19x_SOC 97#ifdef CONFIG_TEGRA_19x_GPU
98#include <linux/nvgpu-t19x.h> 98#include <linux/nvgpu-t19x.h>
99#endif 99#endif
100 100