hw/arm/allwinner-r40: add Clock Control Unit
authorqianfan Zhao <qianfanguijin@163.com>
Tue, 6 Jun 2023 09:19:31 +0000 (10:19 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 6 Jun 2023 09:19:31 +0000 (10:19 +0100)
commitdc2a070d125772fe30384596d4d4ce6d9950b004
treedb13e81b743ba80ebd62ccb0be1b728021431af6
parent8d9006aeca58e4635d58fdd620d52fe77c9eb00d
hw/arm/allwinner-r40: add Clock Control Unit

The CCU provides the registers to program the PLLs and the controls
most of the clock generation, division, distribution, synchronization
and gating.

This commit adds support for the Clock Control Unit which emulates
a simple read/write register interface.

Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
Reviewed-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/allwinner-r40.c
hw/misc/allwinner-r40-ccu.c [new file with mode: 0644]
hw/misc/meson.build
include/hw/arm/allwinner-r40.h
include/hw/misc/allwinner-r40-ccu.h [new file with mode: 0644]