diff options
author | Aingara Paramakuru <aparamakuru@nvidia.com> | 2015-08-27 13:53:47 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-09-29 11:12:15 -0400 |
commit | 39e8bff2fc02b4037dc925076e5f42f6519101eb (patch) | |
tree | 5ca1ff277226a8f69b9947a367a209c9d581fe02 /drivers/gpu/nvgpu/vgpu/vgpu.c | |
parent | ce4dd7ef86e5fec95bd8d2f90eb78e9643dd01d9 (diff) |
gpu: nvgpu: vgpu: T18x support
Add vgpu framework and build for T18x.
Bug 1677153
JIRA VFND-693
Change-Id: Icf9fd8e0b5769228aee59c54f9b000b992e5fcca
Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-on: http://git-master/r/792559
Reviewed-on: http://git-master/r/806178
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/vgpu.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c index b2c08d68..6f91db4c 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/vgpu.c | |||
@@ -21,9 +21,12 @@ | |||
21 | #include "gk20a/debug_gk20a.h" | 21 | #include "gk20a/debug_gk20a.h" |
22 | #include "gk20a/hal_gk20a.h" | 22 | #include "gk20a/hal_gk20a.h" |
23 | #include "gk20a/hw_mc_gk20a.h" | 23 | #include "gk20a/hw_mc_gk20a.h" |
24 | |||
25 | #include "gm20b/hal_gm20b.h" | 24 | #include "gm20b/hal_gm20b.h" |
26 | 25 | ||
26 | #ifdef CONFIG_ARCH_TEGRA_18x_SOC | ||
27 | #include "nvgpu_gpuid_t18x.h" | ||
28 | #endif | ||
29 | |||
27 | static inline int vgpu_comm_init(struct platform_device *pdev) | 30 | static inline int vgpu_comm_init(struct platform_device *pdev) |
28 | { | 31 | { |
29 | size_t queue_sizes[] = { TEGRA_VGPU_QUEUE_SIZES }; | 32 | size_t queue_sizes[] = { TEGRA_VGPU_QUEUE_SIZES }; |
@@ -270,6 +273,11 @@ static int vgpu_init_hal(struct gk20a *g) | |||
270 | gk20a_dbg_info("gm20b detected"); | 273 | gk20a_dbg_info("gm20b detected"); |
271 | err = vgpu_gm20b_init_hal(g); | 274 | err = vgpu_gm20b_init_hal(g); |
272 | break; | 275 | break; |
276 | #if defined(CONFIG_ARCH_TEGRA_18x_SOC) | ||
277 | case TEGRA_18x_GPUID: | ||
278 | err = TEGRA_18x_GPUID_VGPU_HAL(g); | ||
279 | break; | ||
280 | #endif | ||
273 | default: | 281 | default: |
274 | gk20a_err(&g->dev->dev, "no support for %x", ver); | 282 | gk20a_err(&g->dev->dev, "no support for %x", ver); |
275 | err = -ENODEV; | 283 | err = -ENODEV; |