disp: msm: dsi: add ctrl version support for pineapple

Added dsi ctrl version 2.8 support for pineapple hardware

Change-Id: If9beb77c53d70d94b498b5b837c26892a4df9089
Signed-off-by: Kirill Shpin <quic_kshpin@quicinc.com>
This commit is contained in:
Kirill Shpin
2022-10-18 14:25:37 -07:00
committed by Gerrit - the friendly Code Review server
parent 38c0d4cdba
commit 60965fdeae
3 changed files with 10 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ static void dsi_catalog_cmn_init(struct dsi_ctrl_hw *ctrl,
case DSI_CTRL_VERSION_2_5:
case DSI_CTRL_VERSION_2_6:
case DSI_CTRL_VERSION_2_7:
case DSI_CTRL_VERSION_2_8:
ctrl->ops.phy_reset_config = dsi_ctrl_hw_22_phy_reset_config;
ctrl->ops.config_clk_gating = dsi_ctrl_hw_22_config_clk_gating;
ctrl->ops.setup_lane_map = dsi_ctrl_hw_22_setup_lane_map;
@@ -147,6 +148,7 @@ int dsi_catalog_ctrl_setup(struct dsi_ctrl_hw *ctrl,
case DSI_CTRL_VERSION_2_5:
case DSI_CTRL_VERSION_2_6:
case DSI_CTRL_VERSION_2_7:
case DSI_CTRL_VERSION_2_8:
ctrl->widebus_support = true;
ctrl->phy_isolation_enabled = phy_isolation_enabled;
dsi_catalog_cmn_init(ctrl, version);

View File

@@ -56,6 +56,7 @@ static const enum dsi_ctrl_version dsi_ctrl_v2_4 = DSI_CTRL_VERSION_2_4;
static const enum dsi_ctrl_version dsi_ctrl_v2_5 = DSI_CTRL_VERSION_2_5;
static const enum dsi_ctrl_version dsi_ctrl_v2_6 = DSI_CTRL_VERSION_2_6;
static const enum dsi_ctrl_version dsi_ctrl_v2_7 = DSI_CTRL_VERSION_2_7;
static const enum dsi_ctrl_version dsi_ctrl_v2_8 = DSI_CTRL_VERSION_2_8;
static const struct of_device_id msm_dsi_of_match[] = {
{
@@ -82,6 +83,10 @@ static const struct of_device_id msm_dsi_of_match[] = {
.compatible = "qcom,dsi-ctrl-hw-v2.7",
.data = &dsi_ctrl_v2_7,
},
{
.compatible = "qcom,dsi-ctrl-hw-v2.8",
.data = &dsi_ctrl_v2_8,
},
{}
};
@@ -705,6 +710,7 @@ static int dsi_ctrl_init_regmap(struct platform_device *pdev,
case DSI_CTRL_VERSION_2_5:
case DSI_CTRL_VERSION_2_6:
case DSI_CTRL_VERSION_2_7:
case DSI_CTRL_VERSION_2_8:
ptr = msm_ioremap(pdev, "disp_cc_base", ctrl->name);
if (IS_ERR(ptr)) {
DSI_CTRL_ERR(ctrl, "disp_cc base address not found for\n");

View File

@@ -74,6 +74,7 @@ enum dsi_ctrl_tpg_pattern {
* @DSI_CTRL_VERSION_2_5: DSI host v2.5 controller
* @DSI_CTRL_VERSION_2_6: DSI host v2.6 controller
* @DSI_CTRL_VERSION_2_7: DSI host v2.7 controller
* @DSI_CTRL_VERSION_2_8: DSI host v2.8 controller
* @DSI_CTRL_VERSION_MAX: max version
*/
enum dsi_ctrl_version {
@@ -84,6 +85,7 @@ enum dsi_ctrl_version {
DSI_CTRL_VERSION_2_5,
DSI_CTRL_VERSION_2_6,
DSI_CTRL_VERSION_2_7,
DSI_CTRL_VERSION_2_8,
DSI_CTRL_VERSION_MAX
};