]> git.proxmox.com Git - mirror_qemu.git/commit
aspeed/scu: introduce clock frequencies
authorCédric Le Goater <clg@kaod.org>
Tue, 26 Jun 2018 16:50:42 +0000 (17:50 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 26 Jun 2018 16:50:42 +0000 (17:50 +0100)
commitfda9aaa60ec27dfdbc1b70605e5439a6d1b30c2e
tree848c0a7b7bba16a285bd5d027e7473770f1f8569
parent832e4222c82071e4399cffdecd605abed5ac0c27
aspeed/scu: introduce clock frequencies

All Aspeed SoC clocks are driven by an input source clock which can
have different frequencies : 24MHz or 25MHz, and also, on the Aspeed
AST2400 SoC, 48MHz. The H-PLL (CPU) clock is defined from a
calculation using parameters in the H-PLL Parameter register or from a
predefined set of frequencies if the setting is strapped by hardware
(Aspeed AST2400 SoC). The other clocks of the SoC are then defined
from the H-PLL using dividers.

We introduce first the APB clock because it should be used to drive
the Aspeed timer model.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Message-id: 20180622075700.5923-2-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/misc/aspeed_scu.c
include/hw/misc/aspeed_scu.h