From aa47f77ad67ede0f50647aa49d967dfdf524958a Mon Sep 17 00:00:00 2001 From: Wyes Karny Date: Fri, 18 Sep 2020 11:45:44 +0530 Subject: [PATCH] dt-bindings: msm: Add bindings for MP limit fuse support Define CPAS MP limit feature ids. This feature information used for some target SKUs to check the particular ISP HW is capable of how much max resolution during the probe time. Define feature type disable, enable or value. Some features are enable type, if bit is set in the fuse register means feature is enabled. Some features are disabled type, if bit is set in the fuse register means feature is disabled. Some feature are value type, here multiple bit together make a value which indicates some feature. Change-Id: I5a10eee2e42cbc26312968b02bb0f154f2684cb7 Signed-off-by: Wyes Karny --- include/dt-bindings/msm/msm-camera.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/msm/msm-camera.h b/include/dt-bindings/msm/msm-camera.h index e307daa3da75..6b23de749b55 100644 --- a/include/dt-bindings/msm/msm-camera.h +++ b/include/dt-bindings/msm/msm-camera.h @@ -62,11 +62,16 @@ #define CAM_CPAS_TRAFFIC_MERGE_SUM 0 #define CAM_CPAS_TRAFFIC_MERGE_SUM_INTERLEAVE 1 +/* Feature bit type */ +#define CAM_CPAS_FEATURE_TYPE_DISABLE 0 +#define CAM_CPAS_FEATURE_TYPE_ENABLE 1 +#define CAM_CPAS_FEATURE_TYPE_VALUE 2 /* Feature support bit positions in feature fuse register*/ #define CAM_CPAS_QCFA_BINNING_ENABLE 0 #define CAM_CPAS_SECURE_CAMERA_ENABLE 1 #define CAM_CPAS_MF_HDR_ENABLE 2 -#define CAM_CPAS_FUSE_FEATURE_MAX 3 +#define CAM_CPAS_MP_LIMIT_FUSE 3 +#define CAM_CPAS_FUSE_FEATURE_MAX 4 #endif