summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/vgpu.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-02-07 19:29:51 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-02 21:48:41 -0500
commit76b78b6fdcb0bbed72645aaa85de6013e2b135c3 (patch)
treedef110f0c0b0928651186444a9dab058b510c5bb /drivers/gpu/nvgpu/vgpu/vgpu.c
parentf9b2c30b369ba13735e2c0168fd45bb7275bdebd (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/vgpu/vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/vgpu.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c
index c8ab23f1..d8e0dfa1 100644
--- a/drivers/gpu/nvgpu/vgpu/vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/vgpu.c
@@ -31,10 +31,6 @@
31 31
32#include <nvgpu/hw/gk20a/hw_mc_gk20a.h> 32#include <nvgpu/hw/gk20a/hw_mc_gk20a.h>
33 33
34#ifdef CONFIG_ARCH_TEGRA_18x_SOC
35#include "nvgpu_gpuid_t18x.h"
36#endif
37
38static inline int vgpu_comm_init(struct platform_device *pdev) 34static inline int vgpu_comm_init(struct platform_device *pdev)
39{ 35{
40 size_t queue_sizes[] = { TEGRA_VGPU_QUEUE_SIZES }; 36 size_t queue_sizes[] = { TEGRA_VGPU_QUEUE_SIZES };
@@ -374,11 +370,10 @@ static int vgpu_init_hal(struct gk20a *g)
374 gk20a_dbg_info("gm20b detected"); 370 gk20a_dbg_info("gm20b detected");
375 err = vgpu_gm20b_init_hal(g); 371 err = vgpu_gm20b_init_hal(g);
376 break; 372 break;
377#if defined(CONFIG_ARCH_TEGRA_18x_SOC) 373 case NVGPU_GPUID_GP10B:
378 case TEGRA_18x_GPUID: 374 gk20a_dbg_info("gp10b detected");
379 err = TEGRA_18x_GPUID_VGPU_HAL(g); 375 err = vgpu_gp10b_init_hal(g);
380 break; 376 break;
381#endif
382 default: 377 default:
383 gk20a_err(g->dev, "no support for %x", ver); 378 gk20a_err(g->dev, "no support for %x", ver);
384 err = -ENODEV; 379 err = -ENODEV;