diff options
author | Bo Yan <byan@nvidia.com> | 2014-04-14 15:03:27 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:09:38 -0400 |
commit | 9eb1f57ba2b7072c6c53ca9dc59b10a87d88db23 (patch) | |
tree | de095fcbae617e938064e45a96b4e176015fe773 /drivers/gpu/nvgpu/gm20b/hal_gm20b.c | |
parent | 2531751f53fc21bdeb0ece4af550ea1e8efb9653 (diff) |
gpu: nvgpu: Add GPU driver for GM20B
this moves GM20B driver to the new location
Change-Id: I5fde14e114a8db79738a4c61849912b1ae225fb5
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hal_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hal_gm20b.c | 51 |
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 | |||
26 | struct 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 | |||
41 | int 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 | } | ||