From ae6cf7f33140fb5067e07bf52d290cbed96b6cf8 Mon Sep 17 00:00:00 2001 From: Chandan Kumar Jha Date: Tue, 16 Mar 2021 15:18:00 +0530 Subject: [PATCH] msm: camera: cdm: Add cdm debug status register This change adds missing cdm debug status register offsets for cdm version 1.0 that are read during cdm hang. CRs-Fixed: 2898496 Change-Id: I3a83d13f6b18231561973054845cb87b1ffc4b2d Signed-off-by: Chandan Kumar Jha --- drivers/cam_cdm/cam_cdm_hw_reg_1_0.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/cam_cdm/cam_cdm_hw_reg_1_0.h b/drivers/cam_cdm/cam_cdm_hw_reg_1_0.h index f1564dfafcbd..d1505eeef72a 100644 --- a/drivers/cam_cdm/cam_cdm_hw_reg_1_0.h +++ b/drivers/cam_cdm/cam_cdm_hw_reg_1_0.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Copyright (c) 2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. */ #include "cam_cdm.h" @@ -71,6 +71,14 @@ static struct cam_cdm_perf_mon_regs cdm_1_0_perf_mon0 = { .perf_mon_2 = 0x11c, }; +static struct cam_cdm_comp_wait_status cdm_1_0_comp_wait_status0 = { + .comp_wait_status = 0x88, +}; + +static struct cam_cdm_comp_wait_status cdm_1_0_comp_wait_status1 = { + .comp_wait_status = 0x8c, +}; + static struct cam_cdm_common_regs cdm_hw_1_0_cmn_reg_offset = { .cdm_hw_version = 0x0, .cam_version = &cdm_hw_1_0_titan_version, @@ -100,7 +108,10 @@ static struct cam_cdm_common_regs cdm_hw_1_0_cmn_reg_offset = { &cdm_hw_1_0_bl_pending_req0, NULL, }, - .comp_wait = { NULL, NULL }, + .comp_wait = { + &cdm_1_0_comp_wait_status0, + &cdm_1_0_comp_wait_status1, + }, .perf_mon = { &cdm_1_0_perf_mon0, NULL,