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

Commit 41755d5f authored by Ayush Kumar's avatar Ayush Kumar
Browse files

msm: camera: isp: Add format measure support for IFE lite



This change adds format measure field for CSID in IFE Lite
for version 17x and 480 hardware.

CRs-Fixed: 2724224
Change-Id: I1b0d79559dcda14ea7f7edea6f43eb636f92ca5d
Signed-off-by: default avatarAyush Kumar <ayushkr@codeaurora.org>
parent 7e5fc94d
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/* SPDX-License-Identifier: GPL-2.0-only */
/*
/*
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
 */
 */


#ifndef _CAM_IFE_CSID_LITE17X_H_
#ifndef _CAM_IFE_CSID_LITE17X_H_
@@ -298,6 +298,12 @@ static const struct cam_ife_csid_common_reg_offset
	.ipp_irq_mask_all                             = 0x7FFF,
	.ipp_irq_mask_all                             = 0x7FFF,
	.rdi_irq_mask_all                             = 0x7FFF,
	.rdi_irq_mask_all                             = 0x7FFF,
	.ppp_irq_mask_all                             = 0xFFFF,
	.ppp_irq_mask_all                             = 0xFFFF,
	.measure_en_hbi_vbi_cnt_mask                  = 0xC,
	.format_measure_en_val                        = 1,
	.format_measure_height_mask_val               = 0xFFFF,
	.format_measure_height_shift_val              = 0x10,
	.format_measure_width_mask_val                = 0xFFFF,
	.format_measure_width_shift_val               = 0x0,
};
};


static const struct cam_ife_csid_reg_offset cam_ife_csid_lite_17x_reg_offset = {
static const struct cam_ife_csid_reg_offset cam_ife_csid_lite_17x_reg_offset = {
+5 −1
Original line number Original line Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/* SPDX-License-Identifier: GPL-2.0-only */
/*
/*
 * Copyright (c) 2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
 */
 */


#ifndef _CAM_IFE_CSID_LITE_480_H_
#ifndef _CAM_IFE_CSID_LITE_480_H_
@@ -321,6 +321,10 @@ static struct cam_ife_csid_common_reg_offset
	.ppp_irq_mask_all                             = 0xFFFF,
	.ppp_irq_mask_all                             = 0xFFFF,
	.measure_en_hbi_vbi_cnt_mask                  = 0xC,
	.measure_en_hbi_vbi_cnt_mask                  = 0xC,
	.format_measure_en_val                        = 1,
	.format_measure_en_val                        = 1,
	.format_measure_height_mask_val               = 0xFFFF,
	.format_measure_height_shift_val              = 0x10,
	.format_measure_width_mask_val                = 0xFFFF,
	.format_measure_width_shift_val               = 0x0,
};
};


static struct cam_ife_csid_reg_offset cam_ife_csid_lite_480_reg_offset = {
static struct cam_ife_csid_reg_offset cam_ife_csid_lite_480_reg_offset = {