From d71c9ccbe5f6f775de5fecc0cb8361fc7fa5eeb5 Mon Sep 17 00:00:00 2001 From: Pavan Kumar Chilamkurthi Date: Wed, 30 Sep 2020 18:52:14 -0700 Subject: [PATCH] msm: camera: cpas: Update jpeg qosgen settings Use OT limit as 16 for jpeg niu path. This help in controlling jpeg bw flow and to avoid any backpressure on IFE paths. CRs-Fixed: 2789495 Change-Id: I458fa076f59915a7c11be9e7c3d78b412c5c7c5a Signed-off-by: Pavan Kumar Chilamkurthi --- drivers/cam_cpas/cpas_top/cpastop_v580_100.h | 12 ++++++------ drivers/cam_cpas/cpas_top/cpastop_v580_custom.h | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/cam_cpas/cpas_top/cpastop_v580_100.h b/drivers/cam_cpas/cpas_top/cpastop_v580_100.h index 550adc7e0861..9855fdf6821c 100644 --- a/drivers/cam_cpas/cpas_top/cpastop_v580_100.h +++ b/drivers/cam_cpas/cpas_top/cpastop_v580_100.h @@ -953,25 +953,25 @@ static struct cam_camnoc_specific .enable = false, }, .qosgen_mainctl = { - .enable = false, + .enable = true, .access_type = CAM_REG_TYPE_READ_WRITE, .masked_value = 0, .offset = 0x2D08, /* JPEG_QOSGEN_MAINCTL */ - .value = 0x0, + .value = 0x2, }, .qosgen_shaping_low = { - .enable = false, + .enable = true, .access_type = CAM_REG_TYPE_READ_WRITE, .masked_value = 0, .offset = 0x2D20, /* JPEG_QOSGEN_SHAPING_LOW */ - .value = 0x0, + .value = 0x10101010, }, .qosgen_shaping_high = { - .enable = false, + .enable = true, .access_type = CAM_REG_TYPE_READ_WRITE, .masked_value = 0, .offset = 0x2D24, /* JPEG_QOSGEN_SHAPING_HIGH */ - .value = 0x0, + .value = 0x10101010, }, }, { diff --git a/drivers/cam_cpas/cpas_top/cpastop_v580_custom.h b/drivers/cam_cpas/cpas_top/cpastop_v580_custom.h index cf6e51367f2a..99f9302b575c 100644 --- a/drivers/cam_cpas/cpas_top/cpastop_v580_custom.h +++ b/drivers/cam_cpas/cpas_top/cpastop_v580_custom.h @@ -953,25 +953,25 @@ static struct cam_camnoc_specific .enable = false, }, .qosgen_mainctl = { - .enable = false, + .enable = true, .access_type = CAM_REG_TYPE_READ_WRITE, .masked_value = 0, .offset = 0x2D08, /* JPEG_QOSGEN_MAINCTL */ - .value = 0x0, + .value = 0x2, }, .qosgen_shaping_low = { - .enable = false, + .enable = true, .access_type = CAM_REG_TYPE_READ_WRITE, .masked_value = 0, .offset = 0x2D20, /* JPEG_QOSGEN_SHAPING_LOW */ - .value = 0x0, + .value = 0x10101010, }, .qosgen_shaping_high = { - .enable = false, + .enable = true, .access_type = CAM_REG_TYPE_READ_WRITE, .masked_value = 0, .offset = 0x2D24, /* JPEG_QOSGEN_SHAPING_HIGH */ - .value = 0x0, + .value = 0x10101010, }, }, {