lkml.org 
[lkml]   [2021]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/3] clk: qcom: smd-rpm: Add rate hooks for clk_smd_rpm_branch_ops
    Date
    On QCM2290 platform, the clock xo_board runs at 38400000, while the
    child clock bi_tcxo needs to run at 19200000. That said,
    clk_smd_rpm_branch_ops needs the capability of setting rate. Add rate
    hooks into clk_smd_rpm_branch_ops to make it possible.

    Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
    ---
    drivers/clk/qcom/clk-smd-rpm.c | 3 +++
    1 file changed, 3 insertions(+)

    diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c
    index 66d7807ee38e..2380e45b6247 100644
    --- a/drivers/clk/qcom/clk-smd-rpm.c
    +++ b/drivers/clk/qcom/clk-smd-rpm.c
    @@ -416,6 +416,9 @@ static const struct clk_ops clk_smd_rpm_ops = {
    static const struct clk_ops clk_smd_rpm_branch_ops = {
    .prepare = clk_smd_rpm_prepare,
    .unprepare = clk_smd_rpm_unprepare,
    + .set_rate = clk_smd_rpm_set_rate,
    + .round_rate = clk_smd_rpm_round_rate,
    + .recalc_rate = clk_smd_rpm_recalc_rate,
    };

    DEFINE_CLK_SMD_RPM(msm8916, pcnoc_clk, pcnoc_a_clk, QCOM_SMD_RPM_BUS_CLK, 0);
    --
    2.17.1
    \
     
     \ /
      Last update: 2021-09-14 04:56    [W:3.353 / U:0.428 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site