diff options
author | Konrad Dybcio <konrad.dybcio@linaro.org> | 2024-02-12 17:10:47 +0100 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2024-02-14 18:59:07 +0100 |
commit | d09ec6f9877798a2a66c9d5de524b419e2c064bb (patch) | |
tree | 5332e60af6a95596dc96f5a9f5d13f90bf094293 /drivers/clk/qcom/gcc-sdx75.c | |
parent | clk: qcom: branch: Add a helper for setting the enable bit (diff) | |
download | linux-d09ec6f9877798a2a66c9d5de524b419e2c064bb.tar.xz linux-d09ec6f9877798a2a66c9d5de524b419e2c064bb.zip |
clk: qcom: Use qcom_branch_set_clk_en()
Instead of magically poking at the bit0 of branch clocks' CBCR, use
the newly introduced helper.
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240212-topic-clk_branch_en-v7-2-5b79eb7278b2@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/clk/qcom/gcc-sdx75.c')
-rw-r--r-- | drivers/clk/qcom/gcc-sdx75.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/clk/qcom/gcc-sdx75.c b/drivers/clk/qcom/gcc-sdx75.c index 573af17bd24c..c51338f08ef1 100644 --- a/drivers/clk/qcom/gcc-sdx75.c +++ b/drivers/clk/qcom/gcc-sdx75.c @@ -2936,13 +2936,9 @@ static int gcc_sdx75_probe(struct platform_device *pdev) if (ret) return ret; - /* - * Keep clocks always enabled: - * gcc_ahb_pcie_link_clk - * gcc_xo_pcie_link_clk - */ - regmap_update_bits(regmap, 0x3e004, BIT(0), BIT(0)); - regmap_update_bits(regmap, 0x3e008, BIT(0), BIT(0)); + /* Keep some clocks always-on */ + qcom_branch_set_clk_en(regmap, 0x3e004); /* GCC_AHB_PCIE_LINK_CLK */ + qcom_branch_set_clk_en(regmap, 0x3e008); /* GCC_XO_PCIE_LINK_CLK */ return qcom_cc_really_probe(pdev, &gcc_sdx75_desc, regmap); } |