From 298ecc586006c9e256b00b03a69bb62d6d662132 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Sun, 27 Apr 2014 11:30:40 +0200 Subject: 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 Signed-off-by: Sascha Hauer --- include/linux/clk.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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); -- cgit v1.2.3