summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorSeshendra Gadagottu <sgadagottu@nvidia.com>2016-04-07 18:35:51 -0400
committerKen Adams <kadams@nvidia.com>2016-04-13 17:11:43 -0400
commitccba95757033292d881671e575aed5e0feb61dc3 (patch)
tree623dc9c7aaafc90c94964b8777ae94c1e8663daa /drivers/gpu
parent2a57c10e4b83ff397d3b4053c5806f152885ca20 (diff)
gpu: nvgpu: add support for t19x
Add build and gpu framework support for t19x. Bug 1735757 Change-Id: I4b7c6468871ca27412a6f9be20f744bc730b4142 Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/1122093 GVS: Gerrit_Virtual_Submit Reviewed-by: Ken Adams <kadams@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/nvgpu/Makefile10
-rw-r--r--drivers/gpu/nvgpu/gk20a/hal.c10
2 files changed, 20 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/Makefile b/drivers/gpu/nvgpu/Makefile
index 1d712d57..8cd5cc7c 100644
--- a/drivers/gpu/nvgpu/Makefile
+++ b/drivers/gpu/nvgpu/Makefile
@@ -15,6 +15,12 @@ ccflags-y += -I$(srctree)/../kernel-nvgpu-t18x/include
15ccflags-y += -I$(srctree)/../kernel-nvgpu-t18x/include/uapi 15ccflags-y += -I$(srctree)/../kernel-nvgpu-t18x/include/uapi
16endif 16endif
17 17
18ifeq ($(CONFIG_ARCH_TEGRA_19x_SOC),y)
19ccflags-y += -I$(srctree)/../kernel-nvgpu-t19x/drivers/gpu/nvgpu
20ccflags-y += -I$(srctree)/../kernel-nvgpu-t19x/include
21ccflags-y += -I$(srctree)/../kernel-nvgpu-t19x/include/uapi
22endif
23
18obj-$(CONFIG_GK20A) := nvgpu.o 24obj-$(CONFIG_GK20A) := nvgpu.o
19 25
20nvgpu-y := \ 26nvgpu-y := \
@@ -100,3 +106,7 @@ nvgpu-$(CONFIG_GK20A_CYCLE_STATS) += \
100ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y) 106ifeq ($(CONFIG_ARCH_TEGRA_18x_SOC),y)
101include ../kernel-nvgpu-t18x/drivers/gpu/nvgpu/Makefile 107include ../kernel-nvgpu-t18x/drivers/gpu/nvgpu/Makefile
102endif 108endif
109
110ifeq ($(CONFIG_ARCH_TEGRA_19x_SOC),y)
111include ../kernel-nvgpu-t19x/drivers/gpu/nvgpu/Makefile
112endif
diff --git a/drivers/gpu/nvgpu/gk20a/hal.c b/drivers/gpu/nvgpu/gk20a/hal.c
index 7755bf7d..16ba4a03 100644
--- a/drivers/gpu/nvgpu/gk20a/hal.c
+++ b/drivers/gpu/nvgpu/gk20a/hal.c
@@ -21,6 +21,10 @@
21#include "nvgpu_gpuid_t18x.h" 21#include "nvgpu_gpuid_t18x.h"
22#endif 22#endif
23 23
24#ifdef CONFIG_ARCH_TEGRA_19x_SOC
25#include "nvgpu_gpuid_t19x.h"
26#endif
27
24int gpu_init_hal(struct gk20a *g) 28int gpu_init_hal(struct gk20a *g)
25{ 29{
26 u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl; 30 u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl;
@@ -40,6 +44,12 @@ int gpu_init_hal(struct gk20a *g)
40 return -ENODEV; 44 return -ENODEV;
41 break; 45 break;
42#endif 46#endif
47#if defined(CONFIG_ARCH_TEGRA_19x_SOC)
48 case TEGRA_19x_GPUID:
49 if (TEGRA_19x_GPUID_HAL(g))
50 return -ENODEV;
51 break;
52#endif
43 default: 53 default:
44 gk20a_err(g->dev, "no support for %x", ver); 54 gk20a_err(g->dev, "no support for %x", ver);
45 return -ENODEV; 55 return -ENODEV;