diff options
author | Heiko Stuebner <heiko@sntech.de> | 2015-12-22 22:27:58 +0100 |
---|---|---|
committer | Michael Turquette <mturquette@baylibre.com> | 2015-12-23 12:57:31 -0800 |
commit | 2eb8c7104c648ad4bfae1f5333f98c09522149b5 (patch) | |
tree | e6f85898c587de5c2bae29a459c700a9c6cf341d /include/linux/clk-provider.h | |
parent | 84a8c541664b037a4d1fdc3151466b4ec45c37a5 (diff) | |
download | lwn-2eb8c7104c648ad4bfae1f5333f98c09522149b5.tar.gz lwn-2eb8c7104c648ad4bfae1f5333f98c09522149b5.zip |
clk: add flag for clocks that need to be enabled on rate changes
Some clocks need to be enabled to accept rate changes. This patch adds a
new flag CLK_SET_RATE_UNGATE that lets clk_change_rate enable the clock
before trying to change the rate and disable it again afterwards.
This of course doesn't effect clocks that are already running at that
point, as their refcount will only temporarily increase.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Diffstat (limited to 'include/linux/clk-provider.h')
-rw-r--r-- | include/linux/clk-provider.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index c56988ac63f7..a971ce462565 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -31,6 +31,7 @@ #define CLK_SET_RATE_NO_REPARENT BIT(7) /* don't re-parent on rate change */ #define CLK_GET_ACCURACY_NOCACHE BIT(8) /* do not use the cached clk accuracy */ #define CLK_RECALC_NEW_RATES BIT(9) /* recalc rates after notifications */ +#define CLK_SET_RATE_UNGATE BIT(10) /* clock needs to run to set rate */ struct clk; struct clk_hw; |