summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-rw-r--r--drivers/gpu/nvgpu/common/falcon/falcon.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/falcon/falcon.c b/drivers/gpu/nvgpu/common/falcon/falcon.c
index 74d78e86..4c879e52 100644
--- a/drivers/gpu/nvgpu/common/falcon/falcon.c
+++ b/drivers/gpu/nvgpu/common/falcon/falcon.c
@@ -196,6 +196,20 @@ int nvgpu_flcn_copy_to_imem(struct nvgpu_falcon *flcn,
196 return status; 196 return status;
197} 197}
198 198
199int nvgpu_flcn_bootstrap(struct nvgpu_falcon *flcn, u32 boot_vector)
200{
201 struct nvgpu_falcon_ops *flcn_ops = &flcn->flcn_ops;
202 int status = -EINVAL;
203
204 if (flcn_ops->bootstrap)
205 status = flcn_ops->bootstrap(flcn, boot_vector);
206 else
207 nvgpu_warn(flcn->g, "Invalid op on falcon 0x%x ",
208 flcn->flcn_id);
209
210 return status;
211}
212
199void nvgpu_flcn_sw_init(struct gk20a *g, u32 flcn_id) 213void nvgpu_flcn_sw_init(struct gk20a *g, u32 flcn_id)
200{ 214{
201 struct nvgpu_falcon *flcn = NULL; 215 struct nvgpu_falcon *flcn = NULL;