From ccba95757033292d881671e575aed5e0feb61dc3 Mon Sep 17 00:00:00 2001 From: Seshendra Gadagottu Date: Thu, 7 Apr 2016 15:35:51 -0700 Subject: gpu: nvgpu: add support for t19x Add build and gpu framework support for t19x. Bug 1735757 Change-Id: I4b7c6468871ca27412a6f9be20f744bc730b4142 Signed-off-by: Seshendra Gadagottu Reviewed-on: http://git-master/r/1122093 GVS: Gerrit_Virtual_Submit Reviewed-by: Ken Adams --- drivers/gpu/nvgpu/gk20a/hal.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a') 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 @@ #include "nvgpu_gpuid_t18x.h" #endif +#ifdef CONFIG_ARCH_TEGRA_19x_SOC +#include "nvgpu_gpuid_t19x.h" +#endif + int gpu_init_hal(struct gk20a *g) { u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl; @@ -39,6 +43,12 @@ int gpu_init_hal(struct gk20a *g) if (TEGRA_18x_GPUID_HAL(g)) return -ENODEV; break; +#endif +#if defined(CONFIG_ARCH_TEGRA_19x_SOC) + case TEGRA_19x_GPUID: + if (TEGRA_19x_GPUID_HAL(g)) + return -ENODEV; + break; #endif default: gk20a_err(g->dev, "no support for %x", ver); -- cgit v1.2.2