AngeloGioacchino Del Regno
a6a70a670c
clk: mediatek: clk-mux: Support custom parent indices for muxes
...
Add support for customized parent indices for MediaTek muxes: this is
necessary for the case in which we want to exclude some clocks from
a mux's parent clocks list, where the exclusions are not from the
very bottom of the list but either in the middle or the beginning.
Example:
- MUX1 (all parents)
- parent1; idx=0
- parent2; idx=1
- parent3; idx=2
- MUX1 (wanted parents)
- parent1; idx=0
- parent3; idx=2
To achieve that add a `parent_index` array pointer to struct mtk_mux,
then in .set_parent(), .get_parent() callbacks check if this array
was populated and eventually get the index from that.
Also, to avoid updating all clock drivers for all SoCs, rename the
"main" macro to __GATE_CLR_SET_UPD_FLAGS (so, `__` was added) and
add the new member to it; furthermore, GATE_CLK_SET_UPD_FLAGS has
been reintroduced as being fully compatible with the older version.
The new parent_index can be specified with the new `_INDEXED`
variants of the MUX_GATE_CLR_SET_UPD_xxxx macros.
Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20231103102533.69280-2-angelogioacchino.delregno@collabora.com
Tested-by: Fei Shao <fshao@chromium.org>
Reviewed-by: Fei Shao <fshao@chromium.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2024-01-03 15:55:02 -08:00
..
2022-09-26 11:13:09 +08:00
2023-06-08 18:39:29 -07:00
2023-01-30 16:45:01 -08:00
2023-04-10 16:57:12 -07:00
2023-03-13 11:46:23 -07:00
2023-01-30 16:44:56 -08:00
2023-01-30 16:44:56 -08:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-10-18 18:16:38 -07:00
2023-05-10 14:00:46 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-10-18 18:15:10 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-10-18 18:15:14 -07:00
2023-05-10 14:00:46 -07:00
2023-05-10 14:00:46 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 14:00:46 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-10-18 18:15:15 -07:00
2023-05-10 14:00:46 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 14:00:46 -07:00
2023-07-19 13:13:16 -07:00
2023-10-18 18:15:15 -07:00
2023-07-19 13:13:16 -07:00
2023-10-18 18:15:15 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 14:00:46 -07:00
2023-05-10 13:36:03 -07:00
2023-03-13 11:50:18 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-06-26 08:54:19 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 14:00:46 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-06-26 08:54:19 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-03-13 11:50:18 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-08-30 19:53:39 -07:00
2023-05-10 14:00:46 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-06-26 08:54:19 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-06-26 08:54:19 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 14:00:46 -07:00
2023-05-10 13:36:03 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 14:00:46 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-03-13 11:50:18 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-05-10 13:36:03 -07:00
2023-07-19 13:13:16 -07:00
2023-03-13 11:50:18 -07:00
2023-07-19 13:13:16 -07:00
2023-05-10 13:36:03 -07:00
2023-06-26 08:54:19 -07:00
2023-05-10 13:36:03 -07:00
2024-01-03 15:55:02 -08:00
2024-01-03 15:55:02 -08:00
2023-10-24 11:29:41 -07:00
2022-11-29 14:43:07 +08:00
2023-04-25 11:50:08 -07:00
2023-03-13 11:46:23 -07:00
2023-05-10 14:16:03 -07:00
2023-03-31 11:51:22 -07:00
2022-09-26 11:13:09 +08:00
2022-06-15 17:24:13 -07:00