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)
commitae66b1fe48e2dd91229f2b8f25295bce629382d0
tree1a857c94d1d6bf17aea6b7686f2be56534237a97
parent8e90216d2db99f0b883be3b40d5b581437dc4a5d
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