diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2021-06-02 11:55:03 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-06-08 08:38:25 +0200 |
commit | 2d5f1eb391b2a66546236e92f60076fc76360a90 (patch) | |
tree | a9828aa20e1c8e2c1de8f6139d3c902a3d5663fe /include | |
parent | cf5d2e40f459ac9c7475ba7f566c543b29bc125b (diff) | |
download | barebox-2d5f1eb391b2a66546236e92f60076fc76360a90.tar.gz barebox-2d5f1eb391b2a66546236e92f60076fc76360a90.tar.xz |
clk: implement CLK_SET_RATE_UNGATE
Some clocks need to be turned on in oder to change their rate. Implement
CLK_SET_RATE_UNGATE to support these.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.barebox.org/20210602095507.24609-21-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/clk.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h index d53699a874..72971c8e27 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -335,6 +335,7 @@ static inline void clk_put(struct clk *clk) #define CLK_IGNORE_UNUSED (1 << 3) /* do not gate even if unused */ #define CLK_GET_RATE_NOCACHE (1 << 6) /* do not use the cached clk rate */ #define CLK_SET_RATE_NO_REPARENT (1 << 7) /* don't re-parent on rate change */ +#define CLK_SET_RATE_UNGATE (1 << 10) /* clock needs to run to set rate */ #define CLK_IS_CRITICAL (1 << 11) /* do not gate, ever */ /* parents need enable during gate/ungate, set rate and re-parent */ #define CLK_OPS_PARENT_ENABLE (1 << 12) |