aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/clk/zynqmp/clk-zynqmp.h
diff options
context:
space:
mode:
authorMichael Tretter <m.tretter@pengutronix.de>2019-04-12 11:52:20 +0200
committerStephen Boyd <sboyd@kernel.org>2019-04-19 13:59:55 -0700
commit5852b1365df4414523210e444ac7df1dec09acb4 (patch)
treee23c7301e84f915ecfddd7abc762adfafef3d19e /drivers/clk/zynqmp/clk-zynqmp.h
parentclk: zynqmp: fix check for fractional clock (diff)
downloadwireguard-linux-5852b1365df4414523210e444ac7df1dec09acb4.tar.xz
wireguard-linux-5852b1365df4414523210e444ac7df1dec09acb4.zip
clk: zynqmp: use structs for clk query responses
The driver retrieves the clock tree by querying the ATF for the clock names, the clock topology, the parents and other attributes. The driver needs to unmarshal the responses. The definition of the fields in the firmware responses to the queries is inconsistent. Some are specified as a mask, some as a shift, and by the length of the previous field. Define C structs for the entire firmware responses to avoid passing pointers to arrays of an implicit size and make the format of the responses to the queries obvious. Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Reviewed-by: Jolly Shah <jolly.shah@xilinx.com> [sboyd@kernel.org: Drop 0 initializers because sparse complains] 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.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/clk/zynqmp/clk-zynqmp.h b/drivers/clk/zynqmp/clk-zynqmp.h
index 7ab163b67249..fec9a15c8786 100644
--- a/drivers/clk/zynqmp/clk-zynqmp.h
+++ b/drivers/clk/zynqmp/clk-zynqmp.h
@@ -10,12 +10,6 @@
#include <linux/firmware/xlnx-zynqmp.h>
-/* Clock APIs payload parameters */
-#define CLK_GET_NAME_RESP_LEN 16
-#define CLK_GET_TOPOLOGY_RESP_WORDS 3
-#define CLK_GET_PARENTS_RESP_WORDS 3
-#define CLK_GET_ATTR_RESP_WORDS 1
-
enum topology_type {
TYPE_INVALID,
TYPE_MUX,