]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: gcc-sdm845: add sdm670 global clock data
authorRichard Acayan <mailingradian@gmail.com>
Wed, 14 Sep 2022 01:39:22 +0000 (21:39 -0400)
committerBjorn Andersson <andersson@kernel.org>
Wed, 14 Sep 2022 02:20:34 +0000 (21:20 -0500)
commit8f744bf1aec30ad763513c3367497406e29f7a27
tree1a857c94d1d6bf17aea6b7686f2be56534237a97
parente2c37336fd7a0e8b9f0031d2405b2d120e94ba31
clk: qcom: gcc-sdm845: add sdm670 global clock data

The Snapdragon 670 adds and removes some clocks, adds new frequencies, and
adds a new GPLL (Global Phase-Locked Loop) in reference to SDM845, while
also removing some GDSCs. Despite these differences, there are many
similarities with SDM670. Add data for SDM670 in the driver for SDM845 to
reuse the most of the clock data.

Advantages and disadvantages of this approach:
 + maintenance applies to both sdm670 and sdm845 by default
 + less duplicate code (clocks) means smaller distro/pre-built kernels
   with all drivers enabled
 - clocks for both SoC's must be compiled if the user wants clocks for one
   specific SoC (both or none)
 - additional testing needed for sdm845 devices

Link: https://android.googlesource.com/kernel/msm/+/443bd8d6e2cf54698234c752e6de97b4b8a528bd%5E%21/#F10
Signed-off-by: Richard Acayan <mailingradian@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220914013922.198778-4-mailingradian@gmail.com
drivers/clk/qcom/Kconfig
drivers/clk/qcom/gcc-sdm845.c