summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hal_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/hal_gm20b.c51
1 files changed, 51 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
new file mode 100644
index 00000000..286e5fa5
--- /dev/null
+++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
@@ -0,0 +1,51 @@
1/*
2 * GM20B Graphics
3 *
4 * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 */
15
16#include <linux/types.h>
17
18#include "gk20a/gk20a.h"
19
20#include "ltc_gm20b.h"
21#include "gr_gm20b.h"
22#include "ltc_gm20b.h"
23#include "fb_gm20b.h"
24#include "gm20b_gating_reglist.h"
25
26struct gpu_ops gm20b_ops = {
27 .clock_gating = {
28 .slcg_gr_load_gating_prod =
29 gr_gm20b_slcg_gr_load_gating_prod,
30 .slcg_perf_load_gating_prod =
31 gr_gm20b_slcg_perf_load_gating_prod,
32 .blcg_gr_load_gating_prod =
33 gr_gm20b_blcg_gr_load_gating_prod,
34 .pg_gr_load_gating_prod =
35 gr_gm20b_pg_gr_load_gating_prod,
36 .slcg_therm_load_gating_prod =
37 gr_gm20b_slcg_therm_load_gating_prod,
38 }
39};
40
41int gm20b_init_hal(struct gpu_ops *gops)
42{
43 *gops = gm20b_ops;
44 gm20b_init_ltc(gops);
45 gm20b_init_gr(gops);
46 gm20b_init_ltc(gops);
47 gm20b_init_fb(gops);
48 gops->name = "gm20b";
49
50 return 0;
51}