]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: qcom: branch: Add helper functions for setting SLEEP/WAKE bits
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Wed, 8 Feb 2023 09:13:32 +0000 (10:13 +0100)
committerBjorn Andersson <andersson@kernel.org>
Mon, 13 Mar 2023 19:59:44 +0000 (12:59 -0700)
commit0932e565ba7c828d5ec59f872cb3ad6b070dc003
treebe2b23a18add6fec0a26a2580bfb7feafff00b62
parentb594e6f6605311785171b8d4600fe96e35625530
clk: qcom: branch: Add helper functions for setting SLEEP/WAKE bits

HLOS-controlled branch clocks on non-ancient Qualcomm platforms
feature SLEEP and WAKE fields which can be written to to configure
how long the clock hardware should wait internally before being
(un)gated. Some very sensitive clocks need to have these values
programmed to prevent putting the hardware in a not-exactly-good
state. Add definitions of these fields and introduce helpers for
setting them inside clock drivers.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230208091340.124641-3-konrad.dybcio@linaro.org
drivers/clk/qcom/clk-branch.h