msm: camera: sensor: Add register settings in TPG
This change allows the tpg hw register configurations to be directly programmed from the tpg xml file. The regsettings array can be configured with the right configurations for the required mode, if regsettings are not provided in regsettings array. The settings are derived from the stream configurations and global configurations. CRs-Fixed: 3289930. Change-Id: If44678475986efc0f26c334f5db4f9c59cd6873b Signed-off-by: Shivi Mangal <quic_smangal@quicinc.com>
This commit is contained in:

committed by
Camera Software Integration

parent
5614df0d47
commit
953b2ced40
@@ -135,6 +135,7 @@ enum tpg_command_type_t {
|
||||
TPG_CMD_TYPE_GLOBAL_CONFIG,
|
||||
TPG_CMD_TYPE_STREAM_CONFIG,
|
||||
TPG_CMD_TYPE_ILLUMINATION_CONFIG,
|
||||
TPG_CMD_TYPE_SETTINGS_CONFIG,
|
||||
TPG_CMD_TYPE_MAX,
|
||||
};
|
||||
|
||||
@@ -879,6 +880,41 @@ struct tpg_cfa_information_t {
|
||||
struct tpg_pixel_coordinate_t pixel_coordinate[64];
|
||||
} __attribute__((packed));
|
||||
|
||||
/**
|
||||
* tpg_reg_settings : TPG register settings
|
||||
*
|
||||
* @reg_offset : register offset
|
||||
* @reg_value : register value
|
||||
* @operation : operation
|
||||
* @delay_us : delay in micro second
|
||||
*/
|
||||
struct tpg_reg_settings {
|
||||
uint32_t reg_offset;
|
||||
uint32_t reg_value;
|
||||
uint32_t operation;
|
||||
uint32_t delay_us;
|
||||
uint32_t reserved[4];
|
||||
} __attribute__((packed));
|
||||
|
||||
/**
|
||||
* tpg_settings_config_t : settings configuration command structure
|
||||
*
|
||||
* @header : common header
|
||||
* @settings_array_offset : settings array offset
|
||||
* @settings_array_size : settings array size
|
||||
* @active_count : active count
|
||||
* @param_mask : Mask to indicate fields in params
|
||||
* @params : Additional Params
|
||||
*/
|
||||
struct tpg_settings_config_t {
|
||||
struct tpg_command_header_t header;
|
||||
uint32_t settings_array_offset;
|
||||
uint32_t settings_array_size;
|
||||
uint32_t active_count;
|
||||
uint32_t param_mask;
|
||||
uint32_t params[4];
|
||||
} __attribute__((packed));
|
||||
|
||||
/**
|
||||
* tpg_global_config_t : global configuration command structure
|
||||
*
|
||||
|
Reference in New Issue
Block a user