Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clk: qcom: smd-rpm: Make DEFINE_CLK_SMD_RPM_BRANCH_A accept flags

In preparation for supporting keepalive clocks which can never be shut off
(as the platform would fall apart otherwise), make the
DEFINE_CLK_SMD_RPM_BRANCH_A macro accept clock flags for the active-only
clock.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Tested-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230501-topic-rpmcc_xo_a-v1-2-93f18e47b607@linaro.org

authored by

Konrad Dybcio and committed by
Bjorn Andersson
2dd11794 24abad60

+4 -4
+4 -4
drivers/clk/qcom/clk-smd-rpm.c
··· 129 129 _name##_clk, _name##_a_clk, \ 130 130 type, r_id, r, QCOM_RPM_SMD_KEY_ENABLE, 0) 131 131 132 - #define DEFINE_CLK_SMD_RPM_BRANCH_A(_name, type, r_id, r) \ 132 + #define DEFINE_CLK_SMD_RPM_BRANCH_A(_name, type, r_id, r, ao_flags) \ 133 133 __DEFINE_CLK_SMD_RPM_BRANCH_PREFIX(branch_, \ 134 134 _name, _name##_a, type, \ 135 - r_id, r, QCOM_RPM_SMD_KEY_ENABLE, 0) 135 + r_id, r, QCOM_RPM_SMD_KEY_ENABLE, ao_flags) 136 136 137 137 #define DEFINE_CLK_SMD_RPM_QDSS(_name, type, r_id) \ 138 138 __DEFINE_CLK_SMD_RPM(_name##_clk, _name##_a_clk, \ ··· 440 440 .recalc_rate = clk_smd_rpm_recalc_rate, 441 441 }; 442 442 443 - DEFINE_CLK_SMD_RPM_BRANCH_A(bi_tcxo, QCOM_SMD_RPM_MISC_CLK, 0, 19200000); 443 + DEFINE_CLK_SMD_RPM_BRANCH_A(bi_tcxo, QCOM_SMD_RPM_MISC_CLK, 0, 19200000, 0); 444 444 DEFINE_CLK_SMD_RPM_BRANCH(qdss, QCOM_SMD_RPM_MISC_CLK, 1, 19200000); 445 445 DEFINE_CLK_SMD_RPM_QDSS(qdss, QCOM_SMD_RPM_MISC_CLK, 1); 446 - DEFINE_CLK_SMD_RPM_BRANCH_A(bimc_freq_log, QCOM_SMD_RPM_MISC_CLK, 4, 1); 446 + DEFINE_CLK_SMD_RPM_BRANCH_A(bimc_freq_log, QCOM_SMD_RPM_MISC_CLK, 4, 1, 0); 447 447 448 448 DEFINE_CLK_SMD_RPM_BRANCH(mss_cfg_ahb, QCOM_SMD_RPM_MCFG_CLK, 0, 19200000); 449 449