diff options
| author | Weijie Gao <[email protected]> | 2022-09-09 19:59:59 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-09-23 15:09:16 -0400 |
| commit | 7fb33e9aea514cfd873d8005954108a482e9e693 (patch) | |
| tree | c940be0ad748c90af19c5c75772bc8eaf9d51c0e /include/linux/linux_string.h | |
| parent | 59acdf8afe4a5c676f8b6ed7af48821980a2bda5 (diff) | |
clk: mediatek: add CLK_BYPASS_XTAL flag to allow bypassing searching clock parent of xtal clock
The mtk clock framework in u-boot uses array index for searching clock
parent (kernel uses strings for search), so we need to specify a special
clock with ID=0 for CLK_XTAL in u-boot.
In the mt7622/mt7629 clock tree, the clocks with ID=0 never call
mtk_topckgen_get_mux_rate, adn return xtal clock directly. This what we
expected.
However for newer chips, they may have some clocks with ID=0 not
representing the xtal clock and still needs mtk_topckgen_get_mux_rate be
called. Current logic will make entire clock driver not working.
This patch adds a flag to indicate that whether a clock driver needs clocks
with ID=0 to call mtk_topckgen_get_mux_rate.
Reviewed-by: Simon Glass <[email protected]>
Tested-by: Daniel Golle <[email protected]>
Signed-off-by: Weijie Gao <[email protected]>
Diffstat (limited to 'include/linux/linux_string.h')
0 files changed, 0 insertions, 0 deletions
