Files
linux/drivers
Elaine Zhang a8657b15fa clk: rockchip: clk-cpu: add mux setting for cpu change frequency
In order to improve the main frequency of CPU, the clock path of CPU is
simplified as follows:
                         |--\
                         |   \            |--\
 --apll--|\              |    \           |   \
         | |--apll_core--|     \          |    \
 --24M---|/              |mux1 |--[gate]--|mux2|---clk_core
                         |     /          |    /
 --gpll--|\              |    /    |------|   /
         | |--gpll_core--|   /     |      |--/
 --24M---|/              |--/      |
                                   |
 -------apll_directly--------------|

When the CPU requests high frequency, we want to use MUX2 select the
"apll_directly".
At low frequencies use MUX1 to select “apll_core" and then MUX2 to
select "apll_core_gate".

However, in this way, the CPU frequency conversion needs to be
in the following order:
1. MUX2 select to "apll_core_gate", MUX1 select "gpll_core"
2. Apll sets slow_mode, sets APLL parameters, locks APLL, and then APLL
sets normal_mode
3. MUX1 select "apll_core", MUX2 select "apll_directly"

So add pre_muxs and post_muxs to cover this special requirements.

Change-Id: I944c22f774f5f9c4edaf28099b6c2926076d4749
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2021-08-20 15:04:02 +08:00
..
2021-06-12 14:48:14 +02:00
2021-05-14 09:50:24 +02:00
2021-05-20 15:35:25 +02:00
2021-06-03 18:47:38 +02:00
2021-06-12 14:48:14 +02:00
2021-08-03 14:55:57 +08:00
2021-06-03 18:47:38 +02:00
2021-05-15 09:28:55 +02:00
2021-08-11 16:32:38 +08:00
2021-07-16 17:55:24 +08:00
2021-05-20 15:35:25 +02:00
2021-06-03 18:47:38 +02:00
2021-08-19 18:53:56 +08:00
2021-06-12 14:48:14 +02:00