From dadf9262d05bc7aa4f20dd038220d3daedeee4d8 Mon Sep 17 00:00:00 2001 From: Seshendra Gadagottu Date: Thu, 5 Dec 2019 18:34:58 -0800 Subject: [PATCH] gpu: nvgpu: t23x: falcon init Add falcon s/w init for t23x igpu. JIRA NVGPU-4383 Change-Id: Ia23d6a58b59ce5e6da0b96e20a39633a94ad8075 Signed-off-by: Seshendra Gadagottu Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2247226 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-misra Reviewed-by: svc-mobile-cert Reviewed-by: Seema Khowala GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/falcon/falcon.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/nvgpu/common/falcon/falcon.c b/drivers/gpu/nvgpu/common/falcon/falcon.c index 54e44d317..8923a0f57 100644 --- a/drivers/gpu/nvgpu/common/falcon/falcon.c +++ b/drivers/gpu/nvgpu/common/falcon/falcon.c @@ -29,6 +29,10 @@ #include "falcon_sw_tu104.h" #endif +#if defined(CONFIG_NVGPU_NEXT) && defined(CONFIG_NVGPU_NON_FUSA) +#include "nvgpu_next_gpuid.h" +#endif + /* Delay depends on memory size and pwr_clk * delay = (MAX {IMEM_SIZE, DMEM_SIZE} * 64 + 1) / pwr_clk * Timeout set is 1msec & status check at interval 10usec @@ -432,6 +436,11 @@ static int falcon_sw_chip_init(struct gk20a *g, struct nvgpu_falcon *flcn) case NVGPU_GPUID_GP10B: gk20a_falcon_sw_init(flcn); break; +#if defined(CONFIG_NVGPU_NEXT) + case NVGPU_NEXT_GPUID: + gk20a_falcon_sw_init(flcn); + break; +#endif #endif case NVGPU_GPUID_GV11B: gk20a_falcon_sw_init(flcn);