mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
disp: msm: dsi: add a new DT property to support ext bridge hpd
Add a keystr into the connector property if wants this external bridge to support hpd. Userspace can get this info from the connector, and do hpd support. Change-Id: I19e8c2684ef054fbd5c5bf5951357edb1b4ea40c Signed-off-by: Shubham Talekar <quic_stalekar@quicinc.com>
This commit is contained in:
parent
f4c3141df7
commit
a73c6bf906
3 changed files with 9 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue