diff options
author | Claudiu Beznea <[email protected]> | 2021-10-11 14:27:16 +0300 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2021-10-26 18:27:43 -0700 |
commit | 7029db09b2025f863f191b3d5b1d7859a5e26a8d (patch) | |
tree | be34cc047ce7069e9c4d39c032cc469f760fd646 /drivers/usb/cdns3/cdns3-trace.c | |
parent | 1e229c21a47241626b345c31ba443490372cf2b5 (diff) |
clk: at91: clk-master: add notifier for divider
SAMA7G5 supports DVFS by changing cpuck. On SAMA7G5 mck0 shares the same
parent with cpuck as seen in the following clock tree:
+----------> cpuck
|
FRAC PLL ---> DIV PLL -+-> DIV ---> mck0
mck0 could go b/w 32KHz and 200MHz on SAMA7G5. To avoid mck0 overclocking
while changing FRAC PLL or DIV PLL the commit implements a notifier for
mck0 which applies a safe divider to register (maximum value of the divider
which is 5) on PRE_RATE_CHANGE events (such that changes on PLL to not
overclock mck0) and sets the maximum allowed rate on POST_RATE_CHANGE
events.
Signed-off-by: Claudiu Beznea <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Nicolas Ferre <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions