From 08f37cba39d846bc635098c4adae0c4a5629161a Mon Sep 17 00:00:00 2001 From: Sami Kiminki Date: Mon, 17 Aug 2015 21:05:19 +0300 Subject: 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 Reviewed-on: http://git-master/r/784899 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gm20b/hal_gm20b.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/gm20b/hal_gm20b.c') 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 @@ #include #include "regops_gm20b.h" #include "debug_gm20b.h" +#include "cde_gm20b.h" #define FUSE_OPT_PRIV_SEC_DIS_0 0x264 #define PRIV_SECURITY_DISABLE 0x01 @@ -133,6 +134,7 @@ int gm20b_init_hal(struct gk20a *g) gm20b_init_clk_ops(gops); gm20b_init_regops(gops); gm20b_init_debug_ops(gops); + gm20b_init_cde_ops(gops); gops->name = "gm20b"; c->twod_class = FERMI_TWOD_A; -- cgit v1.2.2