msm: camera: icp: Fix FW load sequence issues

Address and enhance ICP FW load sequence using
secure PIL.

CRs-Fixed: 2722486
Change-Id: I812915c001819d477fd315c46c46b7aaffdda5f2
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
This commit is contained in:
Karthik Anantha Ram
2021-01-11 17:01:48 -08:00
committed by Gerrit - the friendly Code Review server
parent 96485688d6
commit 923b5ea86c
5 changed files with 176 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
*/
#include <linux/io.h>
@@ -31,8 +31,9 @@
#define HFI_VERSION_INFO_STEP_BMSK 0xFF
#define HFI_VERSION_INFO_STEP_SHFT 0
#define HFI_POLL_DELAY_US 100
#define HFI_POLL_TIMEOUT_US 10000
/* TO DO Lower timeout value */
#define HFI_POLL_DELAY_US 10
#define HFI_POLL_TIMEOUT_US 1500000
static struct hfi_info *g_hfi;
unsigned int g_icp_mmu_hdl;