mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 23:14:31 +08:00
74e4190cde
On recent Qualcomm platforms the QMP PIPE clocks feed into a set of muxes which must be parked to the "safe" source (bi_tcxo) when corresponding GDSC is turned off and on again. Currently this is handcoded in the PCIe driver by reparenting the gcc_pipe_N_clk_src clock. However the same code sequence should be applied in the pcie-qcom endpoint, USB3 and UFS drivers. Rather than copying this sequence over and over again, follow the example of clk_rcg2_shared_ops and implement this parking in the enable() and disable() clock operations. Supplement the regmap-mux with the new clk_regmap_phy_mux type, which implements such multiplexers as a simple gate clocks. This is possible since each of these multiplexers has just two clock sources: one coming from the PHY and a reference (XO) one. If the clock is running off the from-PHY source, report it as enabled. Report it as disabled otherwise (if it uses reference source). This way the PHY will disable the pipe clock before turning off the GDSC, which in turn would lead to disabling corresponding pipe_clk_src (and thus it being parked to a safe, reference clock source). And vice versa, after enabling the GDSC the PHY will enable the pipe clock, which would cause pipe_clk_src to be switched from a safe source to the working one. Reviewed-by: Johan Hovold <johan+linaro@kernel.org> Tested-by: Johan Hovold <johan+linaro@kernel.org> Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220608105238.2973600-2-dmitry.baryshkov@linaro.org
111 lines
4.6 KiB
Makefile
111 lines
4.6 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
obj-$(CONFIG_COMMON_CLK_QCOM) += clk-qcom.o
|
|
|
|
clk-qcom-y += common.o
|
|
clk-qcom-y += clk-regmap.o
|
|
clk-qcom-y += clk-alpha-pll.o
|
|
clk-qcom-y += clk-pll.o
|
|
clk-qcom-y += clk-rcg.o
|
|
clk-qcom-y += clk-rcg2.o
|
|
clk-qcom-y += clk-branch.o
|
|
clk-qcom-y += clk-regmap-divider.o
|
|
clk-qcom-y += clk-regmap-mux.o
|
|
clk-qcom-y += clk-regmap-mux-div.o
|
|
clk-qcom-y += clk-regmap-phy-mux.o
|
|
clk-qcom-$(CONFIG_KRAIT_CLOCKS) += clk-krait.o
|
|
clk-qcom-y += clk-hfpll.o
|
|
clk-qcom-y += reset.o
|
|
clk-qcom-$(CONFIG_QCOM_GDSC) += gdsc.o
|
|
|
|
# Keep alphabetically sorted by config
|
|
obj-$(CONFIG_APQ_GCC_8084) += gcc-apq8084.o
|
|
obj-$(CONFIG_APQ_MMCC_8084) += mmcc-apq8084.o
|
|
obj-$(CONFIG_CLK_GFM_LPASS_SM8250) += lpass-gfm-sm8250.o
|
|
obj-$(CONFIG_IPQ_APSS_PLL) += apss-ipq-pll.o
|
|
obj-$(CONFIG_IPQ_APSS_6018) += apss-ipq6018.o
|
|
obj-$(CONFIG_IPQ_GCC_4019) += gcc-ipq4019.o
|
|
obj-$(CONFIG_IPQ_GCC_6018) += gcc-ipq6018.o
|
|
obj-$(CONFIG_IPQ_GCC_806X) += gcc-ipq806x.o
|
|
obj-$(CONFIG_IPQ_GCC_8074) += gcc-ipq8074.o
|
|
obj-$(CONFIG_IPQ_LCC_806X) += lcc-ipq806x.o
|
|
obj-$(CONFIG_MDM_GCC_9607) += gcc-mdm9607.o
|
|
obj-$(CONFIG_MDM_GCC_9615) += gcc-mdm9615.o
|
|
obj-$(CONFIG_MDM_LCC_9615) += lcc-mdm9615.o
|
|
obj-$(CONFIG_MSM_GCC_8660) += gcc-msm8660.o
|
|
obj-$(CONFIG_MSM_GCC_8916) += gcc-msm8916.o
|
|
obj-$(CONFIG_MSM_GCC_8939) += gcc-msm8939.o
|
|
obj-$(CONFIG_MSM_GCC_8953) += gcc-msm8953.o
|
|
obj-$(CONFIG_MSM_GCC_8960) += gcc-msm8960.o
|
|
obj-$(CONFIG_MSM_GCC_8974) += gcc-msm8974.o
|
|
obj-$(CONFIG_MSM_GCC_8976) += gcc-msm8976.o
|
|
obj-$(CONFIG_MSM_GCC_8994) += gcc-msm8994.o
|
|
obj-$(CONFIG_MSM_GCC_8996) += gcc-msm8996.o
|
|
obj-$(CONFIG_MSM_LCC_8960) += lcc-msm8960.o
|
|
obj-$(CONFIG_MSM_GCC_8998) += gcc-msm8998.o
|
|
obj-$(CONFIG_MSM_GPUCC_8998) += gpucc-msm8998.o
|
|
obj-$(CONFIG_MSM_MMCC_8960) += mmcc-msm8960.o
|
|
obj-$(CONFIG_MSM_MMCC_8974) += mmcc-msm8974.o
|
|
obj-$(CONFIG_MSM_MMCC_8994) += mmcc-msm8994.o
|
|
obj-$(CONFIG_MSM_MMCC_8996) += mmcc-msm8996.o
|
|
obj-$(CONFIG_MSM_MMCC_8998) += mmcc-msm8998.o
|
|
obj-$(CONFIG_QCOM_A53PLL) += a53-pll.o
|
|
obj-$(CONFIG_QCOM_A7PLL) += a7-pll.o
|
|
obj-$(CONFIG_QCOM_CLK_APCS_MSM8916) += apcs-msm8916.o
|
|
obj-$(CONFIG_QCOM_CLK_APCC_MSM8996) += clk-cpu-8996.o
|
|
obj-$(CONFIG_QCOM_CLK_APCS_SDX55) += apcs-sdx55.o
|
|
obj-$(CONFIG_QCOM_CLK_RPM) += clk-rpm.o
|
|
obj-$(CONFIG_QCOM_CLK_RPMH) += clk-rpmh.o
|
|
obj-$(CONFIG_QCOM_CLK_SMD_RPM) += clk-smd-rpm.o
|
|
obj-$(CONFIG_QCM_GCC_2290) += gcc-qcm2290.o
|
|
obj-$(CONFIG_QCM_DISPCC_2290) += dispcc-qcm2290.o
|
|
obj-$(CONFIG_QCS_GCC_404) += gcc-qcs404.o
|
|
obj-$(CONFIG_QCS_Q6SSTOP_404) += q6sstop-qcs404.o
|
|
obj-$(CONFIG_QCS_TURING_404) += turingcc-qcs404.o
|
|
obj-$(CONFIG_SC_CAMCC_7180) += camcc-sc7180.o
|
|
obj-$(CONFIG_SC_CAMCC_7280) += camcc-sc7280.o
|
|
obj-$(CONFIG_SC_DISPCC_7180) += dispcc-sc7180.o
|
|
obj-$(CONFIG_SC_DISPCC_7280) += dispcc-sc7280.o
|
|
obj-$(CONFIG_SC_GCC_7180) += gcc-sc7180.o
|
|
obj-$(CONFIG_SC_GCC_7280) += gcc-sc7280.o
|
|
obj-$(CONFIG_SC_GCC_8180X) += gcc-sc8180x.o
|
|
obj-$(CONFIG_SC_GCC_8280XP) += gcc-sc8280xp.o
|
|
obj-$(CONFIG_SC_GPUCC_7180) += gpucc-sc7180.o
|
|
obj-$(CONFIG_SC_GPUCC_7280) += gpucc-sc7280.o
|
|
obj-$(CONFIG_SC_LPASSCC_7280) += lpasscc-sc7280.o
|
|
obj-$(CONFIG_SC_LPASS_CORECC_7180) += lpasscorecc-sc7180.o
|
|
obj-$(CONFIG_SC_LPASS_CORECC_7280) += lpasscorecc-sc7280.o lpassaudiocc-sc7280.o
|
|
obj-$(CONFIG_SC_MSS_7180) += mss-sc7180.o
|
|
obj-$(CONFIG_SC_VIDEOCC_7180) += videocc-sc7180.o
|
|
obj-$(CONFIG_SC_VIDEOCC_7280) += videocc-sc7280.o
|
|
obj-$(CONFIG_SDM_CAMCC_845) += camcc-sdm845.o
|
|
obj-$(CONFIG_SDM_DISPCC_845) += dispcc-sdm845.o
|
|
obj-$(CONFIG_SDM_GCC_660) += gcc-sdm660.o
|
|
obj-$(CONFIG_SDM_MMCC_660) += mmcc-sdm660.o
|
|
obj-$(CONFIG_SDM_GPUCC_660) += gpucc-sdm660.o
|
|
obj-$(CONFIG_SDM_GCC_845) += gcc-sdm845.o
|
|
obj-$(CONFIG_SDM_GPUCC_845) += gpucc-sdm845.o
|
|
obj-$(CONFIG_SDM_LPASSCC_845) += lpasscc-sdm845.o
|
|
obj-$(CONFIG_SDM_VIDEOCC_845) += videocc-sdm845.o
|
|
obj-$(CONFIG_SDX_GCC_55) += gcc-sdx55.o
|
|
obj-$(CONFIG_SDX_GCC_65) += gcc-sdx65.o
|
|
obj-$(CONFIG_SM_CAMCC_8250) += camcc-sm8250.o
|
|
obj-$(CONFIG_SM_DISPCC_6125) += dispcc-sm6125.o
|
|
obj-$(CONFIG_SM_DISPCC_6350) += dispcc-sm6350.o
|
|
obj-$(CONFIG_SM_DISPCC_8250) += dispcc-sm8250.o
|
|
obj-$(CONFIG_SM_GCC_6115) += gcc-sm6115.o
|
|
obj-$(CONFIG_SM_GCC_6125) += gcc-sm6125.o
|
|
obj-$(CONFIG_SM_GCC_6350) += gcc-sm6350.o
|
|
obj-$(CONFIG_SM_GCC_8150) += gcc-sm8150.o
|
|
obj-$(CONFIG_SM_GCC_8250) += gcc-sm8250.o
|
|
obj-$(CONFIG_SM_GCC_8350) += gcc-sm8350.o
|
|
obj-$(CONFIG_SM_GCC_8450) += gcc-sm8450.o
|
|
obj-$(CONFIG_SM_GPUCC_6350) += gpucc-sm6350.o
|
|
obj-$(CONFIG_SM_GPUCC_8150) += gpucc-sm8150.o
|
|
obj-$(CONFIG_SM_GPUCC_8250) += gpucc-sm8250.o
|
|
obj-$(CONFIG_SM_VIDEOCC_8150) += videocc-sm8150.o
|
|
obj-$(CONFIG_SM_VIDEOCC_8250) += videocc-sm8250.o
|
|
obj-$(CONFIG_SPMI_PMIC_CLKDIV) += clk-spmi-pmic-div.o
|
|
obj-$(CONFIG_KPSS_XCC) += kpss-xcc.o
|
|
obj-$(CONFIG_QCOM_HFPLL) += hfpll.o
|
|
obj-$(CONFIG_KRAITCC) += krait-cc.o
|