diff --git a/msm/dsi/dsi_defs.h b/msm/dsi/dsi_defs.h index 892334fc1315..7303d30397bf 100644 --- a/msm/dsi/dsi_defs.h +++ b/msm/dsi/dsi_defs.h @@ -1,5 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. */ @@ -470,6 +471,7 @@ struct dsi_split_link_config { * @append_tx_eot: Append EOT packets for forward transmissions if set to * true. * @ext_bridge_mode: External bridge is connected. + * @ext_bridge_hpd_en: Enable hpd for external bridge. * @force_hs_clk_lane: Send continuous clock to the panel. * @phy_type: DPHY/CPHY is enabled for this panel. * @dsi_split_link_config: Split Link Configuration. @@ -500,6 +502,7 @@ struct dsi_host_common_cfg { bool ignore_rx_eot; bool append_tx_eot; bool ext_bridge_mode; + bool ext_bridge_hpd_en; bool force_hs_clk_lane; enum dsi_phy_type phy_type; struct dsi_split_link_config split_link; diff --git a/msm/dsi/dsi_drm.c b/msm/dsi/dsi_drm.c index 8b6db3d58d65..84681e2e8726 100644 --- a/msm/dsi/dsi_drm.c +++ b/msm/dsi/dsi_drm.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. */ @@ -749,6 +750,8 @@ int dsi_conn_set_info_blob(struct drm_connector *connector, bpp = dsi_ctrl_pixel_format_to_bpp(fmt); sde_kms_info_add_keyint(info, "bit_depth", bpp); + if (dsi_display->panel->host_config.ext_bridge_hpd_en) + sde_kms_info_add_keystr(info, "ext bridge hpd support", "true"); end: return 0; diff --git a/msm/dsi/dsi_panel.c b/msm/dsi/dsi_panel.c index b98447056ce3..becb218efc44 100644 --- a/msm/dsi/dsi_panel.c +++ b/msm/dsi/dsi_panel.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. */ @@ -1138,7 +1138,8 @@ static int dsi_panel_parse_misc_host_config(struct dsi_host_common_cfg *host, host->ext_bridge_mode = utils->read_bool(utils->data, "qcom,mdss-dsi-ext-bridge-mode"); - + host->ext_bridge_hpd_en = utils->read_bool(utils->data, + "qcom,mdss-dsi-ext-bridge-hpd"); host->force_hs_clk_lane = utils->read_bool(utils->data, "qcom,mdss-dsi-force-clock-lane-hs"); panel_cphy_mode = utils->read_bool(utils->data,