summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2021-06-02 11:55:01 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-06-08 08:37:44 +0200
commit5f1ad009c6d202c0a7a4b71c71be6869eb267a3a (patch)
tree7d59843e1c872a5f076a3c83b4af2e2f7a5d392f
parentfb26e39573cc5d0993e5bed70354bc330769b0f6 (diff)
downloadbarebox-5f1ad009c6d202c0a7a4b71c71be6869eb267a3a.tar.gz
barebox-5f1ad009c6d202c0a7a4b71c71be6869eb267a3a.tar.xz
clk: Add CLK_GET_RATE_NOCACHE
Just add the flag. We don't need any implementation of this flag as we do not cache the clock rate anyway. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Link: https://lore.barebox.org/20210602095507.24609-19-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/clk/rockchip/clk.h1
-rw-r--r--include/linux/clk.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/rockchip/clk.h b/drivers/clk/rockchip/clk.h
index 006225b7e8..25109cd43b 100644
--- a/drivers/clk/rockchip/clk.h
+++ b/drivers/clk/rockchip/clk.h
@@ -19,7 +19,6 @@
/* To keep changes from kernel smaller */
#define CLK_GATE_SET_TO_DISABLE CLK_GATE_INVERTED
-#define CLK_GET_RATE_NOCACHE 0
#define HIWORD_UPDATE(val, mask, shift) \
((val) << (shift) | (mask) << ((shift) + 16))
diff --git a/include/linux/clk.h b/include/linux/clk.h
index 0d2fb488bc..c49604fe2d 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -333,6 +333,7 @@ static inline void clk_put(struct clk *clk)
#define CLK_SET_RATE_PARENT (1 << 0) /* propagate rate change up one level */
#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_IS_CRITICAL (1 << 11) /* do not gate, ever */
/* parents need enable during gate/ungate, set rate and re-parent */