freebsd-dev/sys/arm64/rockchip
Emmanuel Vadot 3df266dff9 arm64: rockchip: Add proper armclock support
The core clock (armclk) on RockChip SoC is special.
It can derive it's clock from many PLLs but RockChip recommand to do it
from "apll" on old SoC and "npll" on new SoC. The reason for choosing npll
is that it's have less jitter and is more close to the arm core on the SoC.
r333314 added the core clock as a composite clock but due to it's specials
property we need to deal with it differently.
A new rk_clk_armclk type is added for this and it supports only the "npll"
as we don't run on old RockChip SoC that only have the "apll".
It will always reparent to "npll" and set the frequency according to a rate
table that is known to be good.
For now we set the "npll" to the desired frequency and just set the core clk
divider to 1 as its parent it just used for the core clk.
2018-05-23 19:07:03 +00:00
..
clk arm64: rockchip: Add proper armclock support 2018-05-23 19:07:03 +00:00
rk_gpio.c arm64: rockchip: rk_gpio fix rk_gpio_pin_config32 2018-04-26 22:15:09 +00:00
rk_grf.c arm64: rockchip: Add GRF driver 2018-04-26 21:35:04 +00:00
rk_pinctrl.c arm64: rockchip: Add pinctrl driver 2018-04-26 21:37:38 +00:00