summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/hal_gk20a.c
diff options
context:
space:
mode:
authorArto Merilainen <amerilainen@nvidia.com>2014-03-19 03:38:25 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:08:53 -0400
commita9785995d5f22aaeb659285f8aeb64d8b56982e0 (patch)
treecc75f75bcf43db316a002a7a240b81f299bf6d7f /drivers/gpu/nvgpu/gk20a/hal_gk20a.c
parent61efaf843c22b85424036ec98015121c08f5f16c (diff)
gpu: nvgpu: Add NVIDIA GPU Driver
This patch moves the NVIDIA GPU driver to a new location. Bug 1482562 Change-Id: I24293810b9d0f1504fd9be00135e21dad656ccb6 Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: http://git-master/r/383722 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hal_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/hal_gk20a.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hal_gk20a.c b/drivers/gpu/nvgpu/gk20a/hal_gk20a.c
new file mode 100644
index 00000000..b3e9b0e6
--- /dev/null
+++ b/drivers/gpu/nvgpu/gk20a/hal_gk20a.c
@@ -0,0 +1,50 @@
1/*
2 * drivers/video/tegra/host/gk20a/hal_gk20a.c
3 *
4 * GK20A Tegra HAL interface.
5 *
6 * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms and conditions of the GNU General Public License,
10 * version 2, as published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * more details.
16 */
17
18#include "hal_gk20a.h"
19#include "ltc_gk20a.h"
20#include "fb_gk20a.h"
21#include "gk20a.h"
22#include "gk20a_gating_reglist.h"
23#include "channel_gk20a.h"
24
25struct gpu_ops gk20a_ops = {
26 .clock_gating = {
27 .slcg_gr_load_gating_prod =
28 gr_gk20a_slcg_gr_load_gating_prod,
29 .slcg_perf_load_gating_prod =
30 gr_gk20a_slcg_perf_load_gating_prod,
31 .blcg_gr_load_gating_prod =
32 gr_gk20a_blcg_gr_load_gating_prod,
33 .pg_gr_load_gating_prod =
34 gr_gk20a_pg_gr_load_gating_prod,
35 .slcg_therm_load_gating_prod =
36 gr_gk20a_slcg_therm_load_gating_prod,
37 }
38};
39
40int gk20a_init_hal(struct gpu_ops *gops)
41{
42 *gops = gk20a_ops;
43 gk20a_init_ltc(gops);
44 gk20a_init_gr(gops);
45 gk20a_init_fb(gops);
46 gk20a_init_fifo(gops);
47 gops->name = "gk20a";
48
49 return 0;
50}