diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hal.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hal.c | 10 |
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 | |||
20 | int gpu_init_hal(struct gk20a *g) | 24 | int 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; |