summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/hal.c
diff options
context:
space:
mode:
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 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;