diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2023-11-27 07:49:41 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-12-05 08:45:32 +0100 |
commit | 2f0b936e8f3e0544cd8a1d12cb0a76d018081f39 (patch) | |
tree | a312fefed86a0a3b399f7c2d3e6154ce0b255397 /include/linux | |
parent | cceeb917b9d205c19fd1cb39ddcc3ed94c1cd9cf (diff) | |
download | barebox-2f0b936e8f3e0544cd8a1d12cb0a76d018081f39.tar.gz barebox-2f0b936e8f3e0544cd8a1d12cb0a76d018081f39.tar.xz |
clk: add struct clk_init_data::parent_hws
For cases where all clock parents are internal to the clock controller,
parent_hws allows specifying direct pointers to the clk_hw structures
instead of globally unique names. Add support for this to barebox to be
used by the incoming STM32MP13 clock driver.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20231127064947.2207726-8-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/clk.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h index 6a33f28ee6..28ed2d2bfd 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -329,6 +329,8 @@ struct clk_ops { * @name: clock name * @ops: operations this clock supports * @parent_names: array of string names for all possible parents + * @parent_hws: array of pointers to all possible parents (when all parents + * are internal to the clk controller) * @num_parents: number of possible parents * @flags: framework-level hints and quirks */ @@ -336,6 +338,7 @@ struct clk_init_data { const char *name; const struct clk_ops *ops; const char * const *parent_names; + const struct clk_hw **parent_hws; unsigned int num_parents; unsigned long flags; }; |