فهرست منبع

msm: camera: uapi: Add support for composite config in CSID v980

New register IPP_IRQ_COMP_CFG0 needs information regarding active
contexts in CSID CAMIF, and TFE from userspace. This change
provides the support for it.

CRs-Fixed: 3321317
Change-Id: I9cd85a4392f4f5602c3865526acc3bc13cbf8472
Signed-off-by: Li Sha Lim <[email protected]>
Li Sha Lim 2 سال پیش
والد
کامیت
b99cba37d3
1فایلهای تغییر یافته به همراه20 افزوده شده و 0 حذف شده
  1. 20 0
      include/uapi/camera/media/cam_isp.h

+ 20 - 0
include/uapi/camera/media/cam_isp.h

@@ -137,6 +137,7 @@
 #define CAM_ISP_GENERIC_BLOB_TYPE_DRV_CONFIG                28
 #define CAM_ISP_GENERIC_BLOB_TYPE_BW_CONFIG_V3              29
 #define CAM_ISP_GENERIC_BLOB_TYPE_NFI_MODE_SWITCH           30
+#define CAM_ISP_GENERIC_BLOB_TYPE_IRQ_COMP_CFG              31
 #define CAM_ISP_GENERIC_BLOB_TYPE_VFE_OUT_CONFIG_V2         32
 
 #define CAM_ISP_VC_DT_CFG    4
@@ -224,6 +225,25 @@
  */
 #define CAM_IFE_WM_RCS_EN                    BIT(1)
 
+/**
+ * struct cam_isp_irq_comp_cfg - CSID composite config for MC-based TFE
+ *        Contains information regarding active contexts in CSID CAMIF
+ *        and active contexts in write engine TFE
+ *
+ * @ipp_src_ctxt_mask : Active paths in CSID CAMIF
+ * @ipp_dst_comp_mask : Active paths in TFE
+ * @num_valid_params  : Number of valid params
+ * @valid_param_mask  : Valid param mask
+ * @params            : params
+ */
+struct cam_isp_irq_comp_cfg {
+	__u32   ipp_src_ctxt_mask;
+	__u32   ipp_dst_comp_mask;
+	__u32   num_valid_params;
+	__u32   valid_param_mask;
+	__u32   params[4];
+} __attribute__((packed));
+
 /**
  * struct cam_isp_drv_config - CSID config for DRV
  *        Enables DRV and provides worst case timeout value in INIT packet,