msm: camera: sensor: Add support for CSIPHY 2.1.3

Add support for new CSIPHY HW version 2.1.3.

Change-Id: I22e3658acc9a002e4323c0487e65f5ae0a495d6d
CRs-Fixed: 3068540
Signed-off-by: Anil Kumar Kanakanti <quic_akanakan@quicinc.com>
This commit is contained in:
Anil Kumar Kanakanti
2021-11-05 14:42:06 +05:30
orang tua 8c0dbac21e
melakukan 510d709990
4 mengubah file dengan 1092 tambahan dan 0 penghapusan

Melihat File

@@ -402,6 +402,7 @@ static int32_t cam_csiphy_update_secure_info(
case CSIPHY_VERSION_V124:
case CSIPHY_VERSION_V210:
case CSIPHY_VERSION_V211:
case CSIPHY_VERSION_V213:
phy_mask_len =
(csiphy_dev->soc_info.index < MAX_PHY_MSK_PER_REG) ?
(CAM_CSIPHY_MAX_DPHY_LANES + CAM_CSIPHY_MAX_CPHY_LANES) :

Melihat File

@@ -15,6 +15,7 @@
#include "include/cam_csiphy_2_0_hwreg.h"
#include "include/cam_csiphy_2_1_0_hwreg.h"
#include "include/cam_csiphy_2_1_1_hwreg.h"
#include "include/cam_csiphy_2_1_3_hwreg.h"
/* Clock divide factor for CPHY spec v1.0 */
#define CSIPHY_DIVISOR_16 16
@@ -490,6 +491,23 @@ int32_t cam_csiphy_parse_dt_info(struct platform_device *pdev,
csiphy_dev->clk_lane = 0;
csiphy_dev->ctrl_reg->data_rates_settings_table = &data_rate_delta_table_2_1_1;
csiphy_dev->ctrl_reg->csiphy_bist_reg = &bist_setting_2_1_1;
} else if (of_device_is_compatible(soc_info->dev->of_node,
"qcom,csiphy-v2.1.3")) {
csiphy_dev->ctrl_reg->csiphy_2ph_reg = csiphy_2ph_v2_1_3_reg;
csiphy_dev->ctrl_reg->csiphy_2ph_combo_mode_reg = csiphy_2ph_v2_1_3_combo_mode_reg;
csiphy_dev->ctrl_reg->csiphy_3ph_reg = csiphy_3ph_v2_1_3_reg;
csiphy_dev->ctrl_reg->csiphy_2ph_3ph_mode_reg = NULL;
csiphy_dev->ctrl_reg->csiphy_irq_reg = csiphy_irq_reg_2_1_3;
csiphy_dev->ctrl_reg->csiphy_common_reg = csiphy_common_reg_2_1_3;
csiphy_dev->ctrl_reg->csiphy_reset_enter_regs = csiphy_reset_enter_reg_2_1_3;
csiphy_dev->ctrl_reg->csiphy_reset_exit_regs = csiphy_reset_exit_reg_2_1_3;
csiphy_dev->ctrl_reg->csiphy_reg = csiphy_v2_1_3;
csiphy_dev->ctrl_reg->getclockvoting = get_clk_voting_dynamic;
csiphy_dev->hw_version = CSIPHY_VERSION_V213;
csiphy_dev->is_divisor_32_comp = true;
csiphy_dev->clk_lane = 0;
csiphy_dev->ctrl_reg->data_rates_settings_table = &data_rate_delta_table_2_1_3;
csiphy_dev->ctrl_reg->csiphy_bist_reg = &bist_setting_2_1_3;
} else {
CAM_ERR(CAM_CSIPHY, "invalid hw version : 0x%x",
csiphy_dev->hw_version);

Melihat File

@@ -32,6 +32,7 @@
#define CSIPHY_VERSION_V201 0x201
#define CSIPHY_VERSION_V210 0x210
#define CSIPHY_VERSION_V211 0x211
#define CSIPHY_VERSION_V213 0x213
/**
* @csiphy_dev: CSIPhy device structure

File diff ditekan karena terlalu besar Load Diff