summaryrefslogtreecommitdiff
path: root/drivers/clk/zynqmp/clkc.c
diff options
context:
space:
mode:
authorRajan Vaja <rajan.vaja@xilinx.com>2020-03-13 00:31:38 +0300
committerStephen Boyd <sboyd@kernel.org>2020-05-27 03:59:10 +0300
commite605fa9c4a0c1218e5604b42bef59de0a3a4f813 (patch)
tree381cbd7ab9843b29673fb9fb496a834d50c8652d /drivers/clk/zynqmp/clkc.c
parent58b0fb86260063f86afecaebf4056c876fff2a19 (diff)
downloadlinux-e605fa9c4a0c1218e5604b42bef59de0a3a4f813.tar.xz
clk: zynqmp: Add support for custom type flags
Store extra custom type flags received from firmware. Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com> Signed-off-by: Tejas Patel <tejas.patel@xilinx.com> Signed-off-by: Jolly Shah <jolly.shah@xilinx.com> Link: https://lkml.kernel.org/r/1584048699-24186-2-git-send-email-jolly.shah@xilinx.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/zynqmp/clkc.c')
-rw-r--r--drivers/clk/zynqmp/clkc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/clk/zynqmp/clkc.c b/drivers/clk/zynqmp/clkc.c
index e8b2cf205377..bfc1e7dd0f58 100644
--- a/drivers/clk/zynqmp/clkc.c
+++ b/drivers/clk/zynqmp/clkc.c
@@ -84,6 +84,7 @@ struct name_resp {
struct topology_resp {
#define CLK_TOPOLOGY_TYPE GENMASK(3, 0)
+#define CLK_TOPOLOGY_CUSTOM_TYPE_FLAGS GENMASK(7, 4)
#define CLK_TOPOLOGY_FLAGS GENMASK(23, 8)
#define CLK_TOPOLOGY_TYPE_FLAGS GENMASK(31, 24)
u32 topology[CLK_GET_TOPOLOGY_RESP_WORDS];
@@ -396,6 +397,9 @@ static int __zynqmp_clock_get_topology(struct clock_topology *topology,
topology[*nnodes].type_flag =
FIELD_GET(CLK_TOPOLOGY_TYPE_FLAGS,
response->topology[i]);
+ topology[*nnodes].custom_type_flag =
+ FIELD_GET(CLK_TOPOLOGY_CUSTOM_TYPE_FLAGS,
+ response->topology[i]);
(*nnodes)++;
}