mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
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:
parent
e4d3a647b0
commit
6312f4e886
1 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue