clk: qcom: smd-rpm: rename msm8992_ln_bb_* clocks to qcs404_ln_bb_*
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 9 Dec 2022 16:48:43 +0000 (18:48 +0200)
committerBjorn Andersson <andersson@kernel.org>
Wed, 28 Dec 2022 18:26:14 +0000 (12:26 -0600)
For each of XO_BUFFER_PINCTRL clocks there is a corresponding XO_BUFFER clock
with the similar name (e.g. msm8998_ln_bb_clk3_pin vs
msm8998_ln_bb_clk3). For qcs404_ln_bb_clk_pin there is no
qcs404_ln_bb_clk, since the msm8992_ln_bb_clk was used instead (even for
qcs404 platform).

Follow the usual practice and rename msm8992_ln_bb_clk clocks to
qcs404_ln_bb_clk (and rename active-only clock in a similar way).

This is a preparation step for the next patch, which will merge
XO_BUFFER and XO_BUFFER_PINCTRL definitions.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221209164855.128798-8-dmitry.baryshkov@linaro.org
drivers/clk/qcom/clk-smd-rpm.c

index 7dffc30..add92ec 100644 (file)
@@ -635,7 +635,8 @@ static const struct rpm_smd_clk_desc rpm_clk_msm8976 = {
 };
 
 DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8992, div_clk3, div_clk3_a, 13, 19200000);
-DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8992, ln_bb_clk, ln_bb_a_clk, 8, 19200000);
+DEFINE_CLK_SMD_RPM_XO_BUFFER(qcs404, ln_bb_clk, ln_bb_clk_a, 8, 19200000);
+DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL(qcs404, ln_bb_clk_pin, ln_bb_clk_a_pin, 8, 19200000);
 
 DEFINE_CLK_SMD_RPM(msm8992, ce1_clk, ce1_a_clk, QCOM_SMD_RPM_CE_CLK, 0);
 DEFINE_CLK_SMD_RPM(msm8992, ce2_clk, ce2_a_clk, QCOM_SMD_RPM_CE_CLK, 1);
@@ -673,8 +674,8 @@ static struct clk_smd_rpm *msm8992_clks[] = {
        [RPM_SMD_DIV_A_CLK3] = &msm8992_div_clk3_a,
        [RPM_SMD_IPA_CLK] = &msm8976_ipa_clk,
        [RPM_SMD_IPA_A_CLK] = &msm8976_ipa_a_clk,
-       [RPM_SMD_LN_BB_CLK] = &msm8992_ln_bb_clk,
-       [RPM_SMD_LN_BB_A_CLK] = &msm8992_ln_bb_a_clk,
+       [RPM_SMD_LN_BB_CLK] = &qcs404_ln_bb_clk,
+       [RPM_SMD_LN_BB_A_CLK] = &qcs404_ln_bb_clk_a,
        [RPM_SMD_MMSSNOC_AHB_CLK] = &msm8974_mmssnoc_ahb_clk,
        [RPM_SMD_MMSSNOC_AHB_A_CLK] = &msm8974_mmssnoc_ahb_a_clk,
        [RPM_SMD_MSS_CFG_AHB_CLK] = &msm8992_mss_cfg_ahb_clk,
@@ -733,8 +734,8 @@ static struct clk_smd_rpm *msm8994_clks[] = {
        [RPM_SMD_DIV_A_CLK3] = &msm8992_div_clk3_a,
        [RPM_SMD_IPA_CLK] = &msm8976_ipa_clk,
        [RPM_SMD_IPA_A_CLK] = &msm8976_ipa_a_clk,
-       [RPM_SMD_LN_BB_CLK] = &msm8992_ln_bb_clk,
-       [RPM_SMD_LN_BB_A_CLK] = &msm8992_ln_bb_a_clk,
+       [RPM_SMD_LN_BB_CLK] = &qcs404_ln_bb_clk,
+       [RPM_SMD_LN_BB_A_CLK] = &qcs404_ln_bb_clk_a,
        [RPM_SMD_MMSSNOC_AHB_CLK] = &msm8974_mmssnoc_ahb_clk,
        [RPM_SMD_MMSSNOC_AHB_A_CLK] = &msm8974_mmssnoc_ahb_a_clk,
        [RPM_SMD_MSS_CFG_AHB_CLK] = &msm8992_mss_cfg_ahb_clk,
@@ -798,8 +799,8 @@ static struct clk_smd_rpm *msm8996_clks[] = {
        [RPM_SMD_RF_CLK1_A] = &msm8916_rf_clk1_a,
        [RPM_SMD_RF_CLK2] = &msm8916_rf_clk2,
        [RPM_SMD_RF_CLK2_A] = &msm8916_rf_clk2_a,
-       [RPM_SMD_LN_BB_CLK] = &msm8992_ln_bb_clk,
-       [RPM_SMD_LN_BB_A_CLK] = &msm8992_ln_bb_a_clk,
+       [RPM_SMD_LN_BB_CLK] = &qcs404_ln_bb_clk,
+       [RPM_SMD_LN_BB_A_CLK] = &qcs404_ln_bb_clk_a,
        [RPM_SMD_DIV_CLK1] = &msm8974_div_clk1,
        [RPM_SMD_DIV_A_CLK1] = &msm8974_div_a_clk1,
        [RPM_SMD_DIV_CLK2] = &msm8974_div_clk2,
@@ -822,7 +823,6 @@ static const struct rpm_smd_clk_desc rpm_clk_msm8996 = {
 };
 
 DEFINE_CLK_SMD_RPM(qcs404, bimc_gpu_clk, bimc_gpu_a_clk, QCOM_SMD_RPM_MEM_CLK, 2);
-DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL(qcs404, ln_bb_clk_pin, ln_bb_clk_a_pin, 8, 19200000);
 
 static struct clk_smd_rpm *qcs404_clks[] = {
        [RPM_SMD_QDSS_CLK] = &msm8916_qdss_clk,
@@ -841,8 +841,8 @@ static struct clk_smd_rpm *qcs404_clks[] = {
        [RPM_SMD_CE1_A_CLK] = &msm8992_ce1_a_clk,
        [RPM_SMD_RF_CLK1] = &msm8916_rf_clk1,
        [RPM_SMD_RF_CLK1_A] = &msm8916_rf_clk1_a,
-       [RPM_SMD_LN_BB_CLK] = &msm8992_ln_bb_clk,
-       [RPM_SMD_LN_BB_A_CLK] = &msm8992_ln_bb_a_clk,
+       [RPM_SMD_LN_BB_CLK] = &qcs404_ln_bb_clk,
+       [RPM_SMD_LN_BB_A_CLK] = &qcs404_ln_bb_clk_a,
        [RPM_SMD_LN_BB_CLK_PIN] = &qcs404_ln_bb_clk_pin,
        [RPM_SMD_LN_BB_A_CLK_PIN] = &qcs404_ln_bb_clk_a_pin,
 };
@@ -1014,8 +1014,8 @@ static struct clk_smd_rpm *msm8953_clks[] = {
        [RPM_SMD_BB_CLK2_A]             = &msm8916_bb_clk2_a,
        [RPM_SMD_RF_CLK2]               = &msm8916_rf_clk2,
        [RPM_SMD_RF_CLK2_A]             = &msm8916_rf_clk2_a,
-       [RPM_SMD_RF_CLK3]               = &msm8992_ln_bb_clk,
-       [RPM_SMD_RF_CLK3_A]             = &msm8992_ln_bb_a_clk,
+       [RPM_SMD_RF_CLK3]               = &qcs404_ln_bb_clk,
+       [RPM_SMD_RF_CLK3_A]             = &qcs404_ln_bb_clk_a,
        [RPM_SMD_DIV_CLK2]              = &msm8974_div_clk2,
        [RPM_SMD_DIV_A_CLK2]            = &msm8974_div_a_clk2,
        [RPM_SMD_BB_CLK1_PIN]           = &msm8916_bb_clk1_pin,