Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c7221fd authored by Prakasha Nayak's avatar Prakasha Nayak Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: icp: Use icp base while disabling A5



The hfi interface maintains the csr base which it receives
as part of init. If FW download fails we proceed to disable
A5. At this time csr base is not updated yet hence we need to
use the icp base that is passed to this function.

Change-Id: Ibdb47fe252a09a11a7beb1c105260da357480b7b
Signed-off-by: default avatarPrakasha Nayak <pnayak@codeaurora.org>
parent 6d0b2be2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -540,7 +540,7 @@ void cam_hfi_disable_cpu(void __iomem *icp_base)
	cam_io_w_mb((uint32_t)ICP_INIT_REQUEST_RESET,
		icp_base + HFI_REG_HOST_ICP_INIT_REQUEST);
	cam_io_w_mb((uint32_t)INTR_DISABLE,
		g_hfi->csr_base + HFI_REG_A5_CSR_A2HOSTINTEN);
		icp_base + HFI_REG_A5_CSR_A2HOSTINTEN);
}

void cam_hfi_enable_cpu(void __iomem *icp_base)