diff options
author | Michael Tretter <m.tretter@pengutronix.de> | 2019-04-12 11:52:20 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-04-19 13:59:55 -0700 |
commit | 5852b1365df4414523210e444ac7df1dec09acb4 (patch) | |
tree | e23c7301e84f915ecfddd7abc762adfafef3d19e /drivers/clk/zynqmp/clk-zynqmp.h | |
parent | clk: zynqmp: fix check for fractional clock (diff) | |
download | linux-dev-5852b1365df4414523210e444ac7df1dec09acb4.tar.xz linux-dev-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.h | 6 |
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, |