From 89fc8fcc81db16979efd4184e8ad2f6326491ba5 Mon Sep 17 00:00:00 2001 From: Pavan Kumar Chilamkurthi Date: Wed, 30 Sep 2020 19:48:52 -0700 Subject: [PATCH] msm: camera: cpas: Write qosgen registers when enabled Call qosgen register update to write values into corresponding registers. CRs-Fixed: 2789495 Change-Id: I43eb6bc9d4cce42b78d55b4519931b15b7f6a383 Signed-off-by: Pavan Kumar Chilamkurthi --- drivers/cam_cpas/cpas_top/cam_cpastop_hw.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/cam_cpas/cpas_top/cam_cpastop_hw.c b/drivers/cam_cpas/cpas_top/cam_cpastop_hw.c index f07e16d7f44c..b0e07e0adb0e 100644 --- a/drivers/cam_cpas/cpas_top/cam_cpastop_hw.c +++ b/drivers/cam_cpas/cpas_top/cam_cpastop_hw.c @@ -683,6 +683,8 @@ static int cam_cpastop_poweron(struct cam_hw_info *cpas_hw) cam_cpastop_reset_irq(cpas_hw); for (i = 0; i < camnoc_info->specific_size; i++) { if (camnoc_info->specific[i].enable) { + CAM_DBG(CAM_CPAS, "Updating QoS settings for %d", + camnoc_info->specific[i].port_type); cam_cpas_util_reg_update(cpas_hw, CAM_CPAS_REG_CAMNOC, &camnoc_info->specific[i].priority_lut_low); cam_cpas_util_reg_update(cpas_hw, CAM_CPAS_REG_CAMNOC, @@ -697,6 +699,12 @@ static int cam_cpastop_poweron(struct cam_hw_info *cpas_hw) &camnoc_info->specific[i].ubwc_ctl); cam_cpas_util_reg_update(cpas_hw, CAM_CPAS_REG_CAMNOC, &camnoc_info->specific[i].flag_out_set0_low); + cam_cpas_util_reg_update(cpas_hw, CAM_CPAS_REG_CAMNOC, + &camnoc_info->specific[i].qosgen_mainctl); + cam_cpas_util_reg_update(cpas_hw, CAM_CPAS_REG_CAMNOC, + &camnoc_info->specific[i].qosgen_shaping_low); + cam_cpas_util_reg_update(cpas_hw, CAM_CPAS_REG_CAMNOC, + &camnoc_info->specific[i].qosgen_shaping_high); } }