summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBeniamino Galvani <b.galvani@gmail.com>2014-04-27 11:30:40 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-29 08:15:24 +0200
commit298ecc586006c9e256b00b03a69bb62d6d662132 (patch)
treeabd6ad1b0eff35a3c0a912af7f0f9004252bb9e7 /include
parentb80f5d58009130254bd660df36f0543e73dc959f (diff)
downloadbarebox-298ecc586006c9e256b00b03a69bb62d6d662132.tar.gz
barebox-298ecc586006c9e256b00b03a69bb62d6d662132.tar.xz
clk: gate: add CLK_GATE_HIWORD_MASK flag
Clock gates having the CLK_GATE_HIWORD_MASK flag set use the upper 16 bits of the register as a "write enable" mask for the value in the lower 16 bits. Signed-off-by: Beniamino Galvani <b.galvani@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/clk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h
index fbfdd4f899..49cb5a272b 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -200,6 +200,7 @@ static inline int clk_set_rate(struct clk *clk, unsigned long rate)
#define CLK_SET_RATE_PARENT (1 << 0) /* propagate rate change up one level */
#define CLK_GATE_INVERTED (1 << 0)
+#define CLK_GATE_HIWORD_MASK (1 << 1)
struct clk_ops {
int (*enable)(struct clk *clk);