hw/arm/msf2-soc: Wire up refclk
commit3b76e18520330e2a23c86d7c627c1cd4a3ed32f2
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 12 Aug 2021 09:33:51 +0000 (12 10:33 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 1 Sep 2021 10:08:20 +0000 (1 11:08 +0100)
treebdab5e9a7671c5496f0c2e67eb5dc4dfaed0c518
parent9bfaf3754b71b72296f24f73876da67cf43c3e10
hw/arm/msf2-soc: Wire up refclk

Wire up the refclk for the msf2 SoC.  This SoC runs the refclk at a
frequency which is programmably either /4, /8, /16 or /32 of the main
CPU clock.  We don't currently model the register which allows the
guest to set the divisor, so implement the refclk as a fixed /32 of
the CPU clock (which is the value of the divisor at reset).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Damien Hedde <damien.hedde@greensocs.com>
Message-id: 20210812093356.1946-21-peter.maydell@linaro.org
hw/arm/msf2-soc.c
include/hw/arm/msf2-soc.h