From 6312f4e886faccafe316d7fb2dc0aa8ae8f45850 Mon Sep 17 00:00:00 2001 From: Taniya Das Date: Fri, 16 Apr 2021 12:04:13 +0530 Subject: [PATCH] clk: qcom: cpu: Add voltage voting for the CPU Mux The CPU mux requires to vote correctly on the supply during the frequency transitions, thus add the pre/post callback hooks which would enable & set voltage vote on the rail. Change-Id: I0d4bb88e8d319bfc3f4f8d682964eb7ff3719ce0 Signed-off-by: Taniya Das --- drivers/clk/qcom/clk-cpu-sdxlemur.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clk/qcom/clk-cpu-sdxlemur.c b/drivers/clk/qcom/clk-cpu-sdxlemur.c index fefd86fdbbf5..5c1e5d7f7c44 100644 --- a/drivers/clk/qcom/clk-cpu-sdxlemur.c +++ b/drivers/clk/qcom/clk-cpu-sdxlemur.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. */ #include @@ -234,8 +234,12 @@ static int cpucc_notifier_cb(struct notifier_block *nb, unsigned long event, } static const struct clk_ops cpucc_clk_ops = { + .prepare = clk_prepare_regmap, + .unprepare = clk_unprepare_regmap, .enable = cpucc_clk_enable, .disable = cpucc_clk_disable, + .pre_rate_change = clk_pre_change_regmap, + .post_rate_change = clk_post_change_regmap, .get_parent = cpucc_clk_get_parent, .set_rate = cpucc_clk_set_rate, .set_parent = cpucc_clk_set_parent,