diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-03-23 11:43:53 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-05-23 17:15:25 -0400 |
commit | fb64e1f1b9c2162f521dfe3956655accb911d6a7 (patch) | |
tree | 15236c00323c8d24102f5a1221f1b313d62bfac2 /drivers/gpu/nvgpu/gk20a/hal.c | |
parent | c25e1da93e09a421b8c2b91df720d4bc603db378 (diff) |
gpu: nvgpu: Add support for gm204 and gm206
Add support for chips gm204 and gm206. Adds also support for reading
VBIOS and booting devinit and pre-os images on PMU.
Change-Id: I4824b44245611e5379ace62793cc37158048f432
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1120467
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ken Adams <kadams@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hal.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hal.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hal.c b/drivers/gpu/nvgpu/gk20a/hal.c index 16ba4a03..52ec108b 100644 --- a/drivers/gpu/nvgpu/gk20a/hal.c +++ b/drivers/gpu/nvgpu/gk20a/hal.c | |||
@@ -16,6 +16,7 @@ | |||
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 | #include "gm206/hal_gm206.h" | ||
19 | 20 | ||
20 | #ifdef CONFIG_ARCH_TEGRA_18x_SOC | 21 | #ifdef CONFIG_ARCH_TEGRA_18x_SOC |
21 | #include "nvgpu_gpuid_t18x.h" | 22 | #include "nvgpu_gpuid_t18x.h" |
@@ -38,11 +39,21 @@ int gpu_init_hal(struct gk20a *g) | |||
38 | if (gm20b_init_hal(g)) | 39 | if (gm20b_init_hal(g)) |
39 | return -ENODEV; | 40 | return -ENODEV; |
40 | break; | 41 | break; |
42 | case GK20A_GPUID_GM204: | ||
43 | case GK20A_GPUID_GM206: | ||
44 | gk20a_dbg_info("gm20x detected"); | ||
45 | if (gm206_init_hal(g)) | ||
46 | return -ENODEV; | ||
47 | break; | ||
41 | #if defined(CONFIG_ARCH_TEGRA_18x_SOC) | 48 | #if defined(CONFIG_ARCH_TEGRA_18x_SOC) |
42 | case TEGRA_18x_GPUID: | 49 | case TEGRA_18x_GPUID: |
43 | if (TEGRA_18x_GPUID_HAL(g)) | 50 | if (TEGRA_18x_GPUID_HAL(g)) |
44 | return -ENODEV; | 51 | return -ENODEV; |
45 | break; | 52 | break; |
53 | case TEGRA_18x_GPUID2: | ||
54 | if (TEGRA_18x_GPUID2_HAL(g)) | ||
55 | return -ENODEV; | ||
56 | break; | ||
46 | #endif | 57 | #endif |
47 | #if defined(CONFIG_ARCH_TEGRA_19x_SOC) | 58 | #if defined(CONFIG_ARCH_TEGRA_19x_SOC) |
48 | case TEGRA_19x_GPUID: | 59 | case TEGRA_19x_GPUID: |