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

Skip to content
Commit ed12dde8 authored by Matt Wagantall's avatar Matt Wagantall Committed by Stephen Boyd
Browse files

msm: clock-local2: Add branch_clk_set_flags() for memory retention control



Some branch clocks have a configuration bit associated with them
that determines whether or not SRAM memories in their clock domain
will lose or retain state when the clock is halted.

By default (out of reset) these bits are set so that, even when the
clocks are halted, memory state is retained. This is useful for
drivers that wish to take advantage of temporary clock gating as an
inexpensive way to save power, without needing to re-initialize the
hardware they control again after a clock is re-enabled.

On the other hand, some additional power can be saved by clearing
these bits and allowing the core's memory to collapse. To take
advantage of this, add a means of setting this bit through the
clk_set_flags() API.

Change-Id: I71b68e18d166abce77ff2a2da81f1dff76467d17
Signed-off-by: default avatarMatt Wagantall <mattw@codeaurora.org>
parent 7b567443
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