diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-02-01 15:58:58 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-02-06 07:31:12 +0100 |
commit | bea07a688163c806a1001028f9eda715ca96976c (patch) | |
tree | bf4967686bfad2126a884dec54ec7683682afb17 /include | |
parent | c21794d0eea0dad22cb659ca41b13464f0ee1212 (diff) | |
download | barebox-bea07a688163c806a1001028f9eda715ca96976c.tar.gz barebox-bea07a688163c806a1001028f9eda715ca96976c.tar.xz |
clk: implement CLK_OPS_PARENT_ENABLE
Some clocks may only be modified when their parent clocks are enabled.
The kernel has the CLK_OPS_PARENT_ENABLE flag for this purpose.
Implement it for barebox aswell.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/clk.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h index 8cb9731f12..697ab4ff4a 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -198,6 +198,8 @@ static inline int clk_set_rate(struct clk *clk, unsigned long rate) #ifdef CONFIG_COMMON_CLK #define CLK_SET_RATE_PARENT (1 << 0) /* propagate rate change up one level */ +/* parents need enable during gate/ungate, set rate and re-parent */ +#define CLK_OPS_PARENT_ENABLE (1 << 12) #define CLK_GATE_INVERTED (1 << 0) #define CLK_GATE_HIWORD_MASK (1 << 1) |