msm: camera: uapi: Add interface for DRV config

Add interface to configure DRV settings and vote levels.

CRs-Fixed: 3065551
Change-Id: I07ff6f25bffcfb11671436d64f917fc49cb73cc2
Signed-off-by: Mukund Madhusudan Atre <quic_matre@quicinc.com>
This commit is contained in:
Mukund Madhusudan Atre
2021-10-28 15:52:29 -07:00
committed by Camera Software Integration
parent 38c78b4c8d
commit 9dcca711f8
2 changed files with 80 additions and 0 deletions

View File

@@ -74,6 +74,10 @@
#define CAM_AXI_PATH_DATA_ALL 256
#define CAM_CPAS_FUSES_MAX 32
/* DRV Vote level */
#define CAM_CPAS_VOTE_LEVEL_HIGH 1
#define CAM_CPAS_VOTE_LEVEL_LOW 2
/**
* struct cam_cpas_fuse_value - CPAS fuse value
*
@@ -130,6 +134,37 @@ struct cam_cpas_query_cap_v2 {
struct cam_cpas_fuse_info fuse_info;
};
/**
* struct cam_axi_per_path_bw_vote_v2 - Per path bandwidth vote information
*
* @usage_data: client usage data (left/right/rdi)
* @transac_type: Transaction type on the path (read/write)
* @path_data_type: Path for which vote is given (video, display, rdi)
* @vote_level: Vote level for this path
* @camnoc_bw: CAMNOC bw for this path
* @mnoc_ab_bw: MNOC AB bw for this path
* @mnoc_ib_bw: MNOC IB bw for this path
* @ddr_ab_bw: DDR AB bw for this path
* @ddr_ib_bw: DDR IB bw for this path
* @num_valid_params: Number of valid params
* @valid_param_mask: Valid param mask
* @params: params
*/
struct cam_axi_per_path_bw_vote_v2 {
__u32 usage_data;
__u32 transac_type;
__u32 path_data_type;
__u32 vote_level;
__u64 camnoc_bw;
__u64 mnoc_ab_bw;
__u64 mnoc_ib_bw;
__u64 ddr_ab_bw;
__u64 ddr_ib_bw;
__u32 num_valid_params;
__u32 valid_param_mask;
__u32 params[4];
};
/**
* struct cam_axi_per_path_bw_vote - Per path bandwidth vote information
*