diff options
author | Rajan Vaja <rajan.vaja@xilinx.com> | 2019-12-05 09:35:57 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2020-01-24 00:25:32 +0300 |
commit | e942171bbb762977afaa1eb24a312c3bd56386a5 (patch) | |
tree | 265e220ba90f00bf0051dfa207d135bb86d684e6 /include/linux/firmware/xlnx-zynqmp.h | |
parent | df2a4d94f1720e24643a9870a01a1c2895d13b20 (diff) | |
download | linux-e942171bbb762977afaa1eb24a312c3bd56386a5.tar.xz |
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>
Diffstat (limited to 'include/linux/firmware/xlnx-zynqmp.h')
-rw-r--r-- | include/linux/firmware/xlnx-zynqmp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h index 1827d30e86f1..1b9549d02544 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -108,6 +108,7 @@ enum pm_query_id { PM_QID_CLOCK_GET_PARENTS, PM_QID_CLOCK_GET_ATTRIBUTES, PM_QID_CLOCK_GET_NUM_CLOCKS = 12, + PM_QID_CLOCK_GET_MAX_DIVISOR, }; enum zynqmp_pm_reset_action { |