Some linux clock drivers use the clk_parent_data struct. Import it from linux to make driver porting easier. Signed-off-by: Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx> --- include/linux/clk.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/linux/clk.h b/include/linux/clk.h index 733ba356dd4bf02132cd0599fbb68b1e37ed1781..948fe98e21a78ad794f2503732ab16b857c0b6fe 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -334,6 +334,20 @@ struct clk_ops { int (*get_phase)(struct clk_hw *hw); }; +/** + * struct clk_parent_data - clk parent information + * @hw: parent clk_hw pointer (used for clk providers with internal clks) + * @fw_name: parent name local to provider registering clk + * @name: globally unique parent name (used as a fallback) + * @index: parent index local to provider registering clk (if @fw_name absent) + */ +struct clk_parent_data { + const struct clk_hw *hw; + const char *fw_name; + const char *name; + int index; +}; + /** * struct clk_init_data - holds init data that's common to all clocks and is * shared between the clock provider and the common clock framework. @@ -350,6 +364,7 @@ struct clk_init_data { const char *name; const struct clk_ops *ops; const char * const *parent_names; + const struct clk_parent_data *parent_data; const struct clk_hw **parent_hws; unsigned int num_parents; unsigned long flags; -- 2.46.0