From aec94d809348e8ff9a900c2a38456d7217c86728 Mon Sep 17 00:00:00 2001 From: Kenneth Adams Date: Wed, 29 Oct 2014 08:28:27 +0200 Subject: gpu: nvgpu: T18x support nvgpu framework and build for T18x Bug 1567274 Change-Id: I77835302a1110573008869d1106eface512bb9b1 Signed-off-by: Ken Adams Signed-off-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/hal.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/hal.c') diff --git a/drivers/gpu/nvgpu/gk20a/hal.c b/drivers/gpu/nvgpu/gk20a/hal.c index 8d1a29dd..56553819 100644 --- a/drivers/gpu/nvgpu/gk20a/hal.c +++ b/drivers/gpu/nvgpu/gk20a/hal.c @@ -17,6 +17,10 @@ #include "hal_gk20a.h" #include "gm20b/hal_gm20b.h" +#ifdef CONFIG_ARCH_TEGRA_18x_SOC +#include "nvgpu_gpuid_t18x.h" +#endif + int gpu_init_hal(struct gk20a *g) { u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl; @@ -30,6 +34,12 @@ int gpu_init_hal(struct gk20a *g) if (gm20b_init_hal(&g->ops)) return -ENODEV; break; +#if defined(CONFIG_ARCH_TEGRA_18x_SOC) + case TEGRA_18x_GPUID: + if (TEGRA_18x_GPUID_HAL(&g->ops)) + return -ENODEV; + break; +#endif default: gk20a_err(&g->dev->dev, "no support for %x", ver); return -ENODEV; -- cgit v1.2.2