diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-02-07 19:29:51 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-02 21:48:41 -0500 |
commit | 76b78b6fdcb0bbed72645aaa85de6013e2b135c3 (patch) | |
tree | def110f0c0b0928651186444a9dab058b510c5bb /drivers/gpu/nvgpu/gk20a/hal.c | |
parent | f9b2c30b369ba13735e2c0168fd45bb7275bdebd (diff) |
gpu: nvgpu: Remove nvgpu_gpuid_t18x.h
Remove nvgpu_gpuid_t18x.h since this file is now visible. Migrate
the relevant definitions and defines into their expected places and
make the code use the real defines. No longer is hiding t18x specific
stuff necessary.
Bug 1799159
Change-Id: I47fa2392e46fdb7aacc70aeb0cc8c3f5ca0dc22f
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1300976
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hal.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hal.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hal.c b/drivers/gpu/nvgpu/gk20a/hal.c index d4bd0ddc..dc4fcf1c 100644 --- a/drivers/gpu/nvgpu/gk20a/hal.c +++ b/drivers/gpu/nvgpu/gk20a/hal.c | |||
@@ -16,10 +16,8 @@ | |||
16 | #include "gk20a.h" | 16 | #include "gk20a.h" |
17 | #include "hal_gk20a.h" | 17 | #include "hal_gk20a.h" |
18 | #include "gm20b/hal_gm20b.h" | 18 | #include "gm20b/hal_gm20b.h" |
19 | 19 | #include "gp10b/hal_gp10b.h" | |
20 | #ifdef CONFIG_ARCH_TEGRA_18x_SOC | 20 | #include "gp106/hal_gp106.h" |
21 | #include "nvgpu_gpuid_t18x.h" | ||
22 | #endif | ||
23 | 21 | ||
24 | #ifdef CONFIG_TEGRA_19x_GPU | 22 | #ifdef CONFIG_TEGRA_19x_GPU |
25 | #include "nvgpu_gpuid_t19x.h" | 23 | #include "nvgpu_gpuid_t19x.h" |
@@ -39,13 +37,13 @@ int gpu_init_hal(struct gk20a *g) | |||
39 | return -ENODEV; | 37 | return -ENODEV; |
40 | break; | 38 | break; |
41 | #if defined(CONFIG_ARCH_TEGRA_18x_SOC) | 39 | #if defined(CONFIG_ARCH_TEGRA_18x_SOC) |
42 | case TEGRA_18x_GPUID: | 40 | case NVGPU_GPUID_GP10B: |
43 | if (TEGRA_18x_GPUID_HAL(g)) | 41 | if (gp10b_init_hal(g)) |
44 | return -ENODEV; | 42 | return -ENODEV; |
45 | break; | 43 | break; |
46 | case TEGRA_18x_GPUID2: | 44 | case NVGPU_GPUID_GP104: |
47 | case TEGRA_18x_GPUID3: | 45 | case NVGPU_GPUID_GP106: |
48 | if (TEGRA_18x_GPUID2_HAL(g)) | 46 | if (gp106_init_hal(g)) |
49 | return -ENODEV; | 47 | return -ENODEV; |
50 | break; | 48 | break; |
51 | #endif | 49 | #endif |