From b99cba37d30f09efb10253aab2cf5e0ba977cfe7 Mon Sep 17 00:00:00 2001 From: Li Sha Lim Date: Fri, 9 Jun 2023 12:42:55 -0700 Subject: [PATCH] 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 --- include/uapi/camera/media/cam_isp.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/uapi/camera/media/cam_isp.h b/include/uapi/camera/media/cam_isp.h index f031e0fa4c..dd11871bf4 100644 --- a/include/uapi/camera/media/cam_isp.h +++ b/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,