Loading Documentation/devicetree/bindings/drm/msm/mdss-dsi-panel.txt +3 −0 Original line number Diff line number Diff line Loading @@ -265,6 +265,8 @@ Optional properties: 0x00 = default value. - qcom,mdss-dsi-t-clk-pre: Specifies the byte clock cycles before mode switch. 0x00 = default value. - qcom,mdss-dsi-t-clk-pre-extend: Boolean that specifies whether to enable t_clk_pre counter increment by 2 byteclk. - qcom,mdss-dsi-stream: Specifies the packet stream to be used. 0 = stream 0 (default) 1 = stream 1 Loading Loading @@ -660,6 +662,7 @@ Example: qcom,lanes-per-sublink = <2>; qcom,mdss-dsi-t-clk-post = <0x20>; qcom,mdss-dsi-t-clk-pre = <0x2c>; qcom,mdss-dsi-t-clk-pre-extend; qcom,mdss-dsi-stream = <0>; qcom,mdss-dsi-mdp-trigger = <0>; qcom,mdss-dsi-dma-trigger = <0>; Loading arch/arm64/boot/dts/qcom/atoll-sde.dtsi +1 −1 Original line number Diff line number Diff line /* Copyright (c) 2019, The Linux Foundation. All rights reserved. /* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading drivers/clk/qcom/mdss/mdss-pll.h +8 −2 Original line number Diff line number Diff line Loading @@ -219,8 +219,14 @@ static inline bool is_gdsc_disabled(struct mdss_pll_resources *pll_res) WARN(1, "gdsc_base register is not defined\n"); return true; } if ((pll_res->target_id == MDSS_PLL_TARGET_SDM660) || (pll_res->pll_interface_type == MDSS_DSI_PLL_12NM)) ret = ((readl_relaxed(pll_res->gdsc_base + 0x4) & BIT(31)) && (!(readl_relaxed(pll_res->gdsc_base) & BIT(0)))) ? false : true; (!(readl_relaxed(pll_res->gdsc_base) & BIT(0)))) ? false : true; else ret = readl_relaxed(pll_res->gdsc_base) & BIT(31) ? false : true; return ret; } Loading drivers/gpu/drm/msm/dsi-staging/dsi_ctrl.h +1 −1 Original line number Diff line number Diff line /* * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2015-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading drivers/gpu/drm/msm/dsi-staging/dsi_ctrl_hw_cmn.c +8 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,14 @@ void dsi_ctrl_hw_cmn_host_setup(struct dsi_ctrl_hw *ctrl, dsi_setup_trigger_controls(ctrl, cfg); dsi_split_link_setup(ctrl, cfg); /* Setup T_CLK_PRE extend register */ reg_value = DSI_R32(ctrl, DSI_TEST_PATTERN_GEN_VIDEO_ENABLE); if (cfg->t_clk_pre_extend) reg_value |= BIT(0); else reg_value &= ~BIT(0); DSI_W32(ctrl, DSI_TEST_PATTERN_GEN_VIDEO_ENABLE, reg_value); /* Setup clocking timing controls */ reg_value = ((cfg->t_clk_post & 0x3F) << 8); reg_value |= (cfg->t_clk_pre & 0x3F); Loading Loading
Documentation/devicetree/bindings/drm/msm/mdss-dsi-panel.txt +3 −0 Original line number Diff line number Diff line Loading @@ -265,6 +265,8 @@ Optional properties: 0x00 = default value. - qcom,mdss-dsi-t-clk-pre: Specifies the byte clock cycles before mode switch. 0x00 = default value. - qcom,mdss-dsi-t-clk-pre-extend: Boolean that specifies whether to enable t_clk_pre counter increment by 2 byteclk. - qcom,mdss-dsi-stream: Specifies the packet stream to be used. 0 = stream 0 (default) 1 = stream 1 Loading Loading @@ -660,6 +662,7 @@ Example: qcom,lanes-per-sublink = <2>; qcom,mdss-dsi-t-clk-post = <0x20>; qcom,mdss-dsi-t-clk-pre = <0x2c>; qcom,mdss-dsi-t-clk-pre-extend; qcom,mdss-dsi-stream = <0>; qcom,mdss-dsi-mdp-trigger = <0>; qcom,mdss-dsi-dma-trigger = <0>; Loading
arch/arm64/boot/dts/qcom/atoll-sde.dtsi +1 −1 Original line number Diff line number Diff line /* Copyright (c) 2019, The Linux Foundation. All rights reserved. /* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading
drivers/clk/qcom/mdss/mdss-pll.h +8 −2 Original line number Diff line number Diff line Loading @@ -219,8 +219,14 @@ static inline bool is_gdsc_disabled(struct mdss_pll_resources *pll_res) WARN(1, "gdsc_base register is not defined\n"); return true; } if ((pll_res->target_id == MDSS_PLL_TARGET_SDM660) || (pll_res->pll_interface_type == MDSS_DSI_PLL_12NM)) ret = ((readl_relaxed(pll_res->gdsc_base + 0x4) & BIT(31)) && (!(readl_relaxed(pll_res->gdsc_base) & BIT(0)))) ? false : true; (!(readl_relaxed(pll_res->gdsc_base) & BIT(0)))) ? false : true; else ret = readl_relaxed(pll_res->gdsc_base) & BIT(31) ? false : true; return ret; } Loading
drivers/gpu/drm/msm/dsi-staging/dsi_ctrl.h +1 −1 Original line number Diff line number Diff line /* * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2015-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading
drivers/gpu/drm/msm/dsi-staging/dsi_ctrl_hw_cmn.c +8 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,14 @@ void dsi_ctrl_hw_cmn_host_setup(struct dsi_ctrl_hw *ctrl, dsi_setup_trigger_controls(ctrl, cfg); dsi_split_link_setup(ctrl, cfg); /* Setup T_CLK_PRE extend register */ reg_value = DSI_R32(ctrl, DSI_TEST_PATTERN_GEN_VIDEO_ENABLE); if (cfg->t_clk_pre_extend) reg_value |= BIT(0); else reg_value &= ~BIT(0); DSI_W32(ctrl, DSI_TEST_PATTERN_GEN_VIDEO_ENABLE, reg_value); /* Setup clocking timing controls */ reg_value = ((cfg->t_clk_post & 0x3F) << 8); reg_value |= (cfg->t_clk_pre & 0x3F); Loading