summaryrefslogtreecommitdiff
path: root/drivers/clk/zynqmp/clk-zynqmp.h
diff options
context:
space:
mode:
authorRajan Vaja <rajan.vaja@xilinx.com>2021-06-28 00:01:21 -0700
committerStephen Boyd <sboyd@kernel.org>2021-06-28 23:35:36 -0700
commit54530ed17d1cc096f9ab0319001c96a63f772c62 (patch)
tree84c412575e77301110b3585404c26b7e31710e4f /drivers/clk/zynqmp/clk-zynqmp.h
parent1b09c308e64969f545f4b9474b786ad90dddf9a2 (diff)
downloadlwn-54530ed17d1cc096f9ab0319001c96a63f772c62.tar.gz
lwn-54530ed17d1cc096f9ab0319001c96a63f772c62.zip
clk: zynqmp: Use firmware specific mux clock flags
Use ZynqMP specific mux clock flags instead of using CCF flags. Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com> Link: https://lore.kernel.org/r/20210628070122.26217-4-rajan.vaja@xilinx.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/zynqmp/clk-zynqmp.h')
-rw-r--r--drivers/clk/zynqmp/clk-zynqmp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/clk/zynqmp/clk-zynqmp.h b/drivers/clk/zynqmp/clk-zynqmp.h
index 925a727eb383..84fa80a969a9 100644
--- a/drivers/clk/zynqmp/clk-zynqmp.h
+++ b/drivers/clk/zynqmp/clk-zynqmp.h
@@ -33,6 +33,14 @@
#define ZYNQMP_CLK_DIVIDER_READ_ONLY BIT(5)
#define ZYNQMP_CLK_DIVIDER_MAX_AT_ZERO BIT(6)
+/* Type Flags for mux clock */
+#define ZYNQMP_CLK_MUX_INDEX_ONE BIT(0)
+#define ZYNQMP_CLK_MUX_INDEX_BIT BIT(1)
+#define ZYNQMP_CLK_MUX_HIWORD_MASK BIT(2)
+#define ZYNQMP_CLK_MUX_READ_ONLY BIT(3)
+#define ZYNQMP_CLK_MUX_ROUND_CLOSEST BIT(4)
+#define ZYNQMP_CLK_MUX_BIG_ENDIAN BIT(5)
+
enum topology_type {
TYPE_INVALID,
TYPE_MUX,