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

Commit faf8f91b authored by Gaurav Jindal's avatar Gaurav Jindal
Browse files

msm: camera: isp: Add ldar Dump data for lagoon vfe



Add ldar Dump data for lagoon vfe.

CRs-Fixed: 2645388
Change-Id: I006f48b051e43bf80bb402009c42eb1fc31e1e95
Signed-off-by: default avatarGaurav Jindal <gjindal@codeaurora.org>
parent fd66b87b
Loading
Loading
Loading
Loading
+27 −0
Original line number Original line Diff line number Diff line
@@ -155,6 +155,32 @@ static struct cam_vfe_rdi_reg_data vfe_170_150_rdi_2_data = {
	.reg_update_irq_mask      = 0x80,
	.reg_update_irq_mask      = 0x80,
};
};


struct cam_vfe_top_dump_data vfe170_150_dump_data = {
	.num_reg_dump_entries  =  2,
	.num_lut_dump_entries  =  1,
	.dmi_cfg               =  0xc24,
	.dmi_addr              =  0xc28,
	.dmi_data_path_hi      =  0xc2C,
	.dmi_data_path_lo      =  0xc30,
	.reg_entry = {
		{
			.reg_dump_start = 0x0,
			.reg_dump_end   = 0xF94,
		},
		{
			.reg_dump_start = 0x2000,
			.reg_dump_end   = 0x3578,
		},
	},
	.lut_entry = {
		{
			.lut_word_size = 64,
			.lut_bank_sel  = 0x40,
			.lut_addr_size = 180,
		},
	},
};

static struct cam_vfe_top_ver2_hw_info vfe170_150_top_hw_info = {
static struct cam_vfe_top_ver2_hw_info vfe170_150_top_hw_info = {
	.common_reg = &vfe170_150_top_common_reg,
	.common_reg = &vfe170_150_top_common_reg,
	.camif_hw_info = {
	.camif_hw_info = {
@@ -185,6 +211,7 @@ static struct cam_vfe_top_ver2_hw_info vfe170_150_top_hw_info = {
		CAM_VFE_RDI_VER_1_0,
		CAM_VFE_RDI_VER_1_0,
		CAM_VFE_RDI_VER_1_0,
		CAM_VFE_RDI_VER_1_0,
	},
	},
	.dump_data = &vfe170_150_dump_data,
};
};


static struct cam_irq_register_set vfe170_150_bus_irq_reg[3] = {
static struct cam_irq_register_set vfe170_150_bus_irq_reg[3] = {
+7 −0
Original line number Original line Diff line number Diff line
@@ -224,7 +224,14 @@ static int cam_vfe_hw_dump(
			dump_args->offset, dump_args->buf_len);
			dump_args->offset, dump_args->buf_len);
		return -ENOSPC;
		return -ENOSPC;
	}
	}

	dump_data = top_priv->common_data.dump_data;
	dump_data = top_priv->common_data.dump_data;

	if (!dump_data) {
		CAM_ERR(CAM_ISP, "Dump data not available");
		return -EINVAL;
	}

	soc_info = top_priv->common_data.soc_info;
	soc_info = top_priv->common_data.soc_info;


	/*Dump registers */
	/*Dump registers */