summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/hal.c
diff options
context:
space:
mode:
authorKenneth Adams <kadams@nvidia.com>2014-10-29 02:28:27 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:57 -0400
commitaec94d809348e8ff9a900c2a38456d7217c86728 (patch)
treef25fadc67e06b9690b2d39af3207fab420fa6650 /drivers/gpu/nvgpu/gk20a/hal.c
parent8371833f4273c2d4a6f923eb3270b4ab93967743 (diff)
gpu: nvgpu: T18x support
nvgpu framework and build for T18x Bug 1567274 Change-Id: I77835302a1110573008869d1106eface512bb9b1 Signed-off-by: Ken Adams <kadams@nvidia.com> Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hal.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/hal.c10
1 files changed, 10 insertions, 0 deletions
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 @@
17#include "hal_gk20a.h" 17#include "hal_gk20a.h"
18#include "gm20b/hal_gm20b.h" 18#include "gm20b/hal_gm20b.h"
19 19
20#ifdef CONFIG_ARCH_TEGRA_18x_SOC
21#include "nvgpu_gpuid_t18x.h"
22#endif
23
20int gpu_init_hal(struct gk20a *g) 24int gpu_init_hal(struct gk20a *g)
21{ 25{
22 u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl; 26 u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl;
@@ -30,6 +34,12 @@ int gpu_init_hal(struct gk20a *g)
30 if (gm20b_init_hal(&g->ops)) 34 if (gm20b_init_hal(&g->ops))
31 return -ENODEV; 35 return -ENODEV;
32 break; 36 break;
37#if defined(CONFIG_ARCH_TEGRA_18x_SOC)
38 case TEGRA_18x_GPUID:
39 if (TEGRA_18x_GPUID_HAL(&g->ops))
40 return -ENODEV;
41 break;
42#endif
33 default: 43 default:
34 gk20a_err(&g->dev->dev, "no support for %x", ver); 44 gk20a_err(&g->dev->dev, "no support for %x", ver);
35 return -ENODEV; 45 return -ENODEV;