Browse Source

msm: camera: isp: Send ife process frame event for presil

Send ife process frame event from IFE HW manager for presil
which pchost depends on to start IFE frame runcore or regdump.

CRs-Fixed: 3212166
Change-Id: I268059ec490b2a95f0626045eed26192eb0a42a2
Signed-off-by: Joshua Florez <[email protected]>
Signed-off-by: Suraj Dongre <[email protected]>
Suraj Dongre 3 years ago
parent
commit
f9f3f1eeb7

+ 11 - 0
drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c

@@ -6168,6 +6168,15 @@ static int cam_isp_blob_bw_update(
 	return rc;
 }
 
+static void cam_ife_mgr_send_frame_event(uint64_t request_id, uint32_t ctx_index)
+{
+	if (cam_presil_mode_enabled()) {
+		CAM_DBG(CAM_PRESIL, "PRESIL FRAME req_id=%llu ctx_index %d",
+			request_id, ctx_index);
+		cam_presil_send_event(CAM_PRESIL_EVENT_IFE_FRAME_RUN, request_id);
+	}
+}
+
 /* entry function: config_hw */
 static int cam_ife_mgr_config_hw(void *hw_mgr_priv,
 					void *config_hw_args)
@@ -6423,6 +6432,8 @@ static int cam_ife_mgr_config_hw(void *hw_mgr_priv,
 				hw_update_data->mup_en = false;
 			}
 		}
+
+		cam_ife_mgr_send_frame_event(cfg->request_id, ctx->ctx_index);
 	} else {
 		CAM_ERR(CAM_ISP, "No commands to config");
 	}

+ 1 - 0
drivers/cam_presil/inc/cam_presil_hw_access.h

@@ -21,6 +21,7 @@
 #define CAM_PRESIL_EVENT_HFI_REG_SFR_LEN                             CAM_PRESIL_EVENT_HFI_REG(4)
 #define CAM_PRESIL_EVENT_HFI_REG_ICP_V1_HW_VERSION_TO_START_HFI_INIT CAM_PRESIL_EVENT_HFI_REG(13)
 #define CAM_PRESIL_EVENT_HFI_REG_ON_FIRST_REG_START_FW_DOWNLOAD      0x638   /* write FF to start */
+#define CAM_PRESIL_EVENT_IFE_FRAME_RUN                               0x123   /* write FF to start */
 
 
 /*