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>
diff --git a/arch/arm/mach-msm/clock.h b/arch/arm/mach-msm/clock.h
index 5a9b199..4210bd9 100644
--- a/arch/arm/mach-msm/clock.h
+++ b/arch/arm/mach-msm/clock.h
@@ -30,6 +30,8 @@
 #define CLKFLAG_NORESET			0x00000008
 #define CLKFLAG_HANDOFF_RATE		0x00000010
 #define CLKFLAG_HWCG			0x00000020
+#define CLKFLAG_RETAIN			0x00000040
+#define CLKFLAG_NORETAIN		0x00000080
 #define CLKFLAG_SKIP_AUTO_OFF		0x00000200
 #define CLKFLAG_MIN			0x00000400
 #define CLKFLAG_MAX			0x00000800