From 79a79b8ae6987e5620c9bc7ee080fe637a6ca57b Mon Sep 17 00:00:00 2001 From: Mahantesh Kumbar Date: Wed, 5 Jul 2017 16:12:29 +0530 Subject: gpu: nvgpu: falcon bootstrap support - Added falcon interface/HAL to bootstrap falcon by taking boot vector as parameter - Replaced falcon bootstrap code in multiple files with nvgpu_flcn_bootstrap() method JIRA NVGPU-102 Change-Id: I4324824c50c6196d8b7ecf981f815ec778da2fd9 Signed-off-by: Mahantesh Kumbar Reviewed-on: https://git-master/r/1513643 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu --- drivers/gpu/nvgpu/common/falcon/falcon.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'drivers/gpu/nvgpu/common') 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, return status; } +int nvgpu_flcn_bootstrap(struct nvgpu_falcon *flcn, u32 boot_vector) +{ + struct nvgpu_falcon_ops *flcn_ops = &flcn->flcn_ops; + int status = -EINVAL; + + if (flcn_ops->bootstrap) + status = flcn_ops->bootstrap(flcn, boot_vector); + else + nvgpu_warn(flcn->g, "Invalid op on falcon 0x%x ", + flcn->flcn_id); + + return status; +} + void nvgpu_flcn_sw_init(struct gk20a *g, u32 flcn_id) { struct nvgpu_falcon *flcn = NULL; -- cgit v1.2.2