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

Commit ae7e174c authored by Shubhraprakash Das's avatar Shubhraprakash Das
Browse files

msm: camera: isp: Enable write master for stats



In vfe 48 version the stats write masters have to be enabled
in addition to enabling the stats module. Add code to do this.
Also, the stop of write master was not programmed correctly, fix
this.

CRs-Fixed: 999619
Change-Id: Ic5b38b038508802b0b5779dc5d54ec6772f24b65
Signed-off-by: default avatarShubhraprakash Das <sadas@codeaurora.org>
parent 51a95ffb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -281,6 +281,8 @@ struct msm_vfe_stats_ops {

	void (*update_cgc_override)(struct vfe_device *vfe_dev,
		uint32_t stats_mask, uint8_t enable);
	void (*enable_stats_wm)(struct vfe_device *vfe_dev,
		uint32_t stats_mask, uint8_t enable);
};

enum msm_isp_hw_client {
@@ -514,6 +516,7 @@ struct msm_vfe_axi_shared_data {
struct msm_vfe_stats_hardware_info {
	uint32_t stats_capability_mask;
	uint8_t *stats_ping_pong_offset;
	uint8_t *stats_wm_index;
	uint8_t num_stats_type;
	uint8_t num_stats_comp_mask;
};
+1 −0
Original line number Diff line number Diff line
@@ -1532,6 +1532,7 @@ struct msm_vfe_hardware_info vfe32_hw_info = {
			.get_wm_mask = msm_vfe32_stats_get_wm_mask,
			.get_frame_id = msm_vfe32_stats_get_frame_id,
			.get_pingpong_status = msm_vfe32_get_pingpong_status,
			.enable_stats_wm = NULL,
		},
	},
	.dmi_reg_offset = 0x5A0,
+1 −0
Original line number Diff line number Diff line
@@ -2270,6 +2270,7 @@ struct msm_vfe_hardware_info vfe40_hw_info = {
			.get_pingpong_status = msm_vfe40_get_pingpong_status,
			.update_cgc_override =
				msm_vfe40_stats_update_cgc_override,
			.enable_stats_wm = NULL,
		},
		.platform_ops = {
			.get_platform_data = msm_vfe47_get_platform_data,
+1 −0
Original line number Diff line number Diff line
@@ -1917,6 +1917,7 @@ struct msm_vfe_hardware_info vfe44_hw_info = {
			.get_pingpong_status = msm_vfe44_get_pingpong_status,
			.update_cgc_override =
				msm_vfe44_stats_update_cgc_override,
			.enable_stats_wm = NULL,
		},
		.platform_ops = {
			.get_platform_data = msm_vfe47_get_platform_data,
+1 −0
Original line number Diff line number Diff line
@@ -2012,6 +2012,7 @@ struct msm_vfe_hardware_info vfe46_hw_info = {
			.get_pingpong_status = msm_vfe46_get_pingpong_status,
			.update_cgc_override =
				msm_vfe46_stats_update_cgc_override,
			.enable_stats_wm = NULL,
		},
		.platform_ops = {
			.get_platform_data = msm_vfe47_get_platform_data,
Loading