瀏覽代碼

msm: camera: isp: Fix CSID timestamp enable on RDI

The timestamp enable value for RDI path is being written to cfg1
register instead of the cfg0 register. This results in the timestamp not
being captured and as a result no change in the timestamps returned.

CRs-Fixed: 2830502
Change-Id: I934c097b2fb2c47e54564ff9e5edbfe39d4e1b44
Signed-off-by: Anand Ravi <[email protected]>
Anand Ravi 4 年之前
父節點
當前提交
728bfb19dc
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver1.c

+ 3 - 3
drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_hw_ver1.c

@@ -2213,6 +2213,7 @@ static int cam_ife_csid_ver1_init_config_rdi_path(
 			path_reg->packing_fmt_shift_val;
 
 	val |= path_format.plain_fmt << path_reg->plain_fmt_shift_val;
+	val |= 1 << path_reg->timestamp_en_shift_val;
 
 	cam_io_w_mb(val, mem_base + path_reg->cfg0_addr);
 
@@ -2231,9 +2232,8 @@ static int cam_ife_csid_ver1_init_config_rdi_path(
 	/*configure cfg1 addr
 	 * Timestamp strobe selection
 	 */
-	val |= (1 << path_reg->timestamp_en_shift_val) |
-		(cmn_reg->timestamp_strobe_val <<
-			cmn_reg->timestamp_stb_sel_shift_val);
+	val |= cmn_reg->timestamp_strobe_val <<
+			cmn_reg->timestamp_stb_sel_shift_val;
 
 	cam_io_w_mb(val, mem_base + path_reg->cfg1_addr);