diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2024-06-28 19:40:50 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-08-01 15:32:18 -0600 |
commit | 89eff11485479586f08b3461c74259d1860feb6d (patch) | |
tree | 45659126957ade9d857f943294caf0646cd88637 /drivers/fastboot | |
parent | a03174cbfaef9cc8b51429bbde6e27539f428a83 (diff) | |
download | u-boot-89eff11485479586f08b3461c74259d1860feb6d.tar.gz u-boot-89eff11485479586f08b3461c74259d1860feb6d.tar.bz2 u-boot-89eff11485479586f08b3461c74259d1860feb6d.zip |
clk: mediatek: add support for parent mux from different source
There is a current limitation where parents for a mux can be all declared
as they are from a common source. This is not true as there are some MUX
that can have parent from both infracfg or from topckgen.
To handle this, implement a new flag for the mux, CLK_PARENT_MIXED, and
a new entry for the mux parent_flags.
To use this, CLK_PARENT_MIXED must be used and parent_flags will be used
instead of the parent variable.
Entry in parent_flags are just a struct of ID and flags where it will be
defined where that parent comes from with the usage of
CLK_PARENT_INFRASYS or CLK_PARENT_TOPCKGEN.
This permits to have MUX with parents from infracfg or topckgen.
Notice that with CLK_PARENT_MIXED applied the CLK_BYPASS_XTAL is
ignored.
With CLK_PARENT_MIXED declare CLK_PARENT_XTAL for the relevant parent
instead.
Also alias for the CLK_PARENT macro are provided to better clear their
usage. CLK_PARENT_MIXED require these alias that describe the clk type
to be defined in the clk_tree flags to prevent clk ID clash from
different subsystem that may have equal clk ID.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'drivers/fastboot')
0 files changed, 0 insertions, 0 deletions