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 <tdas@codeaurora.org>
This commit is contained in:
Taniya Das 2021-04-16 12:04:13 +05:30
commit 6312f4e886

View file

@ -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 <linux/cpu.h>
@ -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,