Browse Source

msm: camera: isp: Force all IFE lite RDIs to line based

Change mode of all LITE RDI WMs to line based mode to account for
SFE ZSL RAW 80 byte stride alignment. This change is to make
it generic for all RAW outputs. If the mode needs to be made
frame based, userland will override it. The change also
updates mipi pack property in CSID LITE header.

CRs-Fixed: 3032597
Change-Id: Id3bc7686adae33506d1ffced73fef16776f4e28c
Signed-off-by: Karthik Anantha Ram <[email protected]>
Karthik Anantha Ram 3 years ago
parent
commit
b8d7acab13

+ 3 - 0
drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_lite680.h

@@ -692,6 +692,7 @@ static struct cam_ife_csid_ver2_path_reg_info
 		.resume_frame_boundary          = 1,
 		.overflow_ctrl_en               = 1,
 		.overflow_ctrl_mode_val         = 0x8,
+		.mipi_pack_supported            = 1,
 		.packing_fmt_shift_val          = 15,
 		.plain_alignment_shift_val      = 11,
 		.plain_fmt_shift_val            = 12,
@@ -781,6 +782,7 @@ static struct cam_ife_csid_ver2_path_reg_info
 		.resume_frame_boundary          = 1,
 		.overflow_ctrl_en               = 1,
 		.overflow_ctrl_mode_val         = 0x8,
+		.mipi_pack_supported            = 1,
 		.packing_fmt_shift_val          = 15,
 		.plain_alignment_shift_val      = 11,
 		.plain_fmt_shift_val            = 12,
@@ -870,6 +872,7 @@ static struct cam_ife_csid_ver2_path_reg_info
 		.resume_frame_boundary          = 1,
 		.overflow_ctrl_en               = 1,
 		.overflow_ctrl_mode_val         = 0x8,
+		.mipi_pack_supported            = 1,
 		.packing_fmt_shift_val          = 15,
 		.plain_alignment_shift_val      = 11,
 		.plain_fmt_shift_val            = 12,

+ 4 - 0
drivers/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe17x/cam_vfe_lite68x.h

@@ -463,6 +463,7 @@ static struct cam_vfe_bus_ver3_hw_info vfe680x_bus_hw_info = {
 			.source_group  = CAM_VFE_BUS_VER3_SRC_GRP_1,
 			.num_wm        = 1,
 			.mid[0]        = 8,
+			.line_based    = 1,
 			.wm_idx        = {
 				0,
 			},
@@ -477,6 +478,7 @@ static struct cam_vfe_bus_ver3_hw_info vfe680x_bus_hw_info = {
 			.source_group  = CAM_VFE_BUS_VER3_SRC_GRP_2,
 			.num_wm        = 1,
 			.mid[0]        = 9,
+			.line_based    = 1,
 			.wm_idx        = {
 				1,
 			},
@@ -491,6 +493,7 @@ static struct cam_vfe_bus_ver3_hw_info vfe680x_bus_hw_info = {
 			.source_group  = CAM_VFE_BUS_VER3_SRC_GRP_3,
 			.num_wm        = 1,
 			.mid[0]        = 10,
+			.line_based    = 1,
 			.wm_idx        = {
 				2,
 			},
@@ -505,6 +508,7 @@ static struct cam_vfe_bus_ver3_hw_info vfe680x_bus_hw_info = {
 			.source_group  = CAM_VFE_BUS_VER3_SRC_GRP_4,
 			.num_wm        = 1,
 			.mid[0]        = 11,
+			.line_based    = 1,
 			.wm_idx        = {
 				3,
 			},