• Michael Tretter's avatar
    clk: zynqmp: use structs for clk query responses · 5852b136
    Michael Tretter authored
    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: default avatarMichael Tretter <m.tretter@pengutronix.de>
    Reviewed-by: default avatarJolly Shah <jolly.shah@xilinx.com>
    [sboyd@kernel.org: Drop 0 initializers because sparse complains]
    Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
    5852b136
clk-zynqmp.h 1.42 KB