diff options
author | Sami Kiminki <skiminki@nvidia.com> | 2015-08-17 14:05:19 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-08-19 11:03:24 -0400 |
commit | 08f37cba39d846bc635098c4adae0c4a5629161a (patch) | |
tree | 2e6542081574210e869ca878a921a4c4a0e10013 /drivers/gpu/nvgpu/gm20b/hal_gm20b.c | |
parent | a88e58cc9d2c4b9f852716240b3cabc9449d8679 (diff) |
gpu: nvgpu: Prepare for per-GPU CDE program numbers
Add gpu_ops for CDE, and add get_program_numbers function pointer for
determining horizontal and vertical CDE swizzler programs. This allows
different GPUs to have their own specific requirements for choosing
the CDE firmware programs.
Bug 1604102
Change-Id: Ib37c13abb017c8eb1c32adc8cbc6b5984488222e
Signed-off-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-on: http://git-master/r/784899
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hal_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hal_gm20b.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c index 1ab65836..e32f8943 100644 --- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/tegra-fuse.h> | 32 | #include <linux/tegra-fuse.h> |
33 | #include "regops_gm20b.h" | 33 | #include "regops_gm20b.h" |
34 | #include "debug_gm20b.h" | 34 | #include "debug_gm20b.h" |
35 | #include "cde_gm20b.h" | ||
35 | 36 | ||
36 | #define FUSE_OPT_PRIV_SEC_DIS_0 0x264 | 37 | #define FUSE_OPT_PRIV_SEC_DIS_0 0x264 |
37 | #define PRIV_SECURITY_DISABLE 0x01 | 38 | #define PRIV_SECURITY_DISABLE 0x01 |
@@ -133,6 +134,7 @@ int gm20b_init_hal(struct gk20a *g) | |||
133 | gm20b_init_clk_ops(gops); | 134 | gm20b_init_clk_ops(gops); |
134 | gm20b_init_regops(gops); | 135 | gm20b_init_regops(gops); |
135 | gm20b_init_debug_ops(gops); | 136 | gm20b_init_debug_ops(gops); |
137 | gm20b_init_cde_ops(gops); | ||
136 | gops->name = "gm20b"; | 138 | gops->name = "gm20b"; |
137 | 139 | ||
138 | c->twod_class = FERMI_TWOD_A; | 140 | c->twod_class = FERMI_TWOD_A; |