OSDN Git Service

clk: qcom: gcc-msm8939: Add rates to the GP clocks
authorLin, Meng-Bo <linmengbo0689@protonmail.com>
Thu, 17 Nov 2022 17:15:26 +0000 (17:15 +0000)
committerBjorn Andersson <andersson@kernel.org>
Thu, 1 Dec 2022 23:26:40 +0000 (17:26 -0600)
commita9b6703459b1317354ae5da28acb5be918c16262
treeb3e25bcc56647196e8cf287767ee4ae767bc2892
parent0c44be063948bb02918c9ef5332e0e65daa94fc7
clk: qcom: gcc-msm8939: Add rates to the GP clocks

Similar to msm8916, msm8939 has (at least) 6 "General Purpose" clocks that
can be muxed to SoC pins. These clocks are:

GP_CLK{0, 1} : GPIO_{31, 32} (Belongs to CAMSS according to Linux)
GP_CLK_{1-3}{A, B} : GPIO_{49-51, 97, 12, 13} (Belongs to GCC itself)
GP_MN : GPIO_110 (Doesn't seem to be described in gcc,
    ignored in this patch)

Those clocks may be used as e.g. PWM sources for external peripherals.
Add more frequencies to the table for those clocks so it's possible
for arbitrary peripherals to make use of them.

Reference: https://lore.kernel.org/r/20220612145955.385787-5-nikita@trvn.ru

Signed-off-by: Lin, Meng-Bo <linmengbo0689@protonmail.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221117171343.24216-1-linmengbo0689@protonmail.com
drivers/clk/qcom/gcc-msm8939.c