msm: clock-8960: Set memory retention modes with clk_set_flags()

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, a means of setting this bit is supported through
the clk_set_flags() API.

Change-Id: I80bf17b721b36861e1de3a0267be1788982c57e7
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
4 files changed