Fix various RK3399 clocks and add support for getting the clock frequency
authorkettenis <kettenis@openbsd.org>
Wed, 1 Aug 2018 15:55:50 +0000 (15:55 +0000)
committerkettenis <kettenis@openbsd.org>
Wed, 1 Aug 2018 15:55:50 +0000 (15:55 +0000)
commit1af18cc176787adb8047614c2af737b43dee895b
tree56a8deeae695159def7896d41abc6329a697c4a9
parentd036545502790e3a57d7219369aa50fe0c686589
Fix various RK3399 clocks and add support for getting the clock frequency
of the clocks that we can set.

Assign clock rates (and parents) based on the "assigned-clocks" device tree
property, but only on RK3399 for now as the code for the other Rockchip SoCs
isn't quite ready yet.

Last but not least, fixup a mistake on the firmware for the Theobroma
Systems RK3399-Q7 module such that the "big" cluster uses BPLL as intended.
sys/dev/fdt/rkclock.c