msm: camera: csiphy: Add support for SM8750

This change adds bring up sequence header and
driver support for SM8750.

CRs-Fixed: 3557518
Change-Id: I6daddb5bca67032a5bfd3bc30bbd3d076f8599a4
Signed-off-by: Wang Kan <quic_wkan@quicinc.com>
This commit is contained in:
Wang Kan
2023-07-12 16:00:27 +08:00
committed by Camera Software Integration
parent 5346e6db3f
commit 7d852cc75c
3 changed files with 2219 additions and 3 deletions

View File

@@ -11,6 +11,7 @@
#include "include/cam_csiphy_2_1_2_hwreg.h"
#include "include/cam_csiphy_2_1_3_hwreg.h"
#include "include/cam_csiphy_2_2_0_hwreg.h"
#include "include/cam_csiphy_2_3_0_hwreg.h"
/* Clock divide factor for CPHY spec v1.0 */
#define CSIPHY_DIVISOR_16 16
@@ -331,6 +332,11 @@ int32_t cam_csiphy_parse_dt_info(struct platform_device *pdev,
csiphy_dev->hw_version = CSIPHY_VERSION_V220;
csiphy_dev->is_divisor_32_comp = true;
csiphy_dev->clk_lane = 0;
} else if (of_device_is_compatible(soc_info->dev->of_node, "qcom,csiphy-v2.3.0")) {
csiphy_dev->ctrl_reg = &ctrl_reg_2_3_0;
csiphy_dev->hw_version = CSIPHY_VERSION_V230;
csiphy_dev->is_divisor_32_comp = true;
csiphy_dev->clk_lane = 0;
} else {
CAM_ERR(CAM_CSIPHY, "invalid hw version : 0x%x",
csiphy_dev->hw_version);

View File

@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
*/
#ifndef _CAM_CSIPHY_SOC_H_
@@ -36,6 +36,7 @@
#define CSIPHY_VERSION_V212 0x212
#define CSIPHY_VERSION_V213 0x213
#define CSIPHY_VERSION_V220 0x220
#define CSIPHY_VERSION_V230 0x230
/**
* @csiphy_dev: CSIPhy device structure

File diff suppressed because it is too large Load Diff