Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 435438a0 authored by Vikram Mulukutla's avatar Vikram Mulukutla Committed by Karthik Parsha
Browse files

clk: qcom: clock-cpu-8994: Add support for HW controlled clock trees



The MSM8994V2 SPM can support the disabling and enabling
of the CPU PLLs during power collapse and resume. In order
to ensure exclusivity of hardware versus software control,
perform the following steps before changing the rate of a
target cluster's clock:

1. Use PM QoS to prevent the low power mode that triggers
   hardware control.
2. Schedule an IPI on any core of the target cluster.
3. Wait for the IPI in (2) to finish execution.
4. Perform the clock switch.
5. Remove the PM QoS request in (1).

The steps above ensure that the target cluster does not
enter the low power mode that would enable hardware control
of the PLLs while the rate of the clock tree is being
switched.

Change-Id: I3f8b26a6d74128e63ceccf62462671845912f224
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent b55a0de8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment