clk: zynqmp: Add support for get max divider
authorRajan Vaja <rajan.vaja@xilinx.com>
Thu, 5 Dec 2019 06:35:57 +0000 (22:35 -0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 23 Jan 2020 21:25:32 +0000 (13:25 -0800)
commite942171bbb762977afaa1eb24a312c3bd56386a5
tree265e220ba90f00bf0051dfa207d135bb86d684e6
parentdf2a4d94f1720e24643a9870a01a1c2895d13b20
clk: zynqmp: Add support for get max divider

To achieve best possible rate, maximum limit of divider is required
while computation. Get maximum supported divisor from firmware. To
maintain backward compatibility assign maximum possible value(0xFFFF)
if query for max divisor is not successful.

Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Link: https://lkml.kernel.org/r/1575527759-26452-5-git-send-email-rajan.vaja@xilinx.com
Acked-by: Michal Simek <michal.simek@xilinx.com>
[sboyd@kernel.org: Remove else return and just return]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/zynqmp/divider.c
include/linux/firmware/xlnx-zynqmp.h