diff options
author | Rajan Vaja <rajan.vaja@xilinx.com> | 2021-06-28 00:01:19 -0700 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2021-06-28 23:35:36 -0700 |
commit | 610a5d83010eaf02a857321092cf0cd02178bee7 (patch) | |
tree | 427744497ebac2f22c007e2c3c4a5f0e9b0e2e5a /drivers/clk/zynqmp/pll.c | |
parent | b9ec1c1f9c1bd0344a34a3309b9cc8eba59d7da8 (diff) |
clk: zynqmp: Use firmware specific common clock flags
Currently firmware passes CCF specific flags to ZynqMP clock driver.
So firmware needs to be updated if CCF flags are changed. The firmware
should have its own 'flag number space' that is distinct from the
common clk framework's 'flag number space'. So define and use ZynqMP
specific common clock flags instead of using CCF flags.
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Link: https://lore.kernel.org/r/20210628070122.26217-2-rajan.vaja@xilinx.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/zynqmp/pll.c')
-rw-r--r-- | drivers/clk/zynqmp/pll.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/clk/zynqmp/pll.c b/drivers/clk/zynqmp/pll.c index 793b950ade09..036e4ff64a2f 100644 --- a/drivers/clk/zynqmp/pll.c +++ b/drivers/clk/zynqmp/pll.c @@ -322,7 +322,9 @@ struct clk_hw *zynqmp_clk_register_pll(const char *name, u32 clk_id, init.name = name; init.ops = &zynqmp_pll_ops; - init.flags = nodes->flag; + + init.flags = zynqmp_clk_map_common_ccf_flags(nodes->flag); + init.parent_names = parents; init.num_parents = 1; |