diff options
author | Peter Maydell | 2021-08-12 11:33:51 +0200 |
---|---|---|
committer | Peter Maydell | 2021-09-01 12:08:20 +0200 |
commit | 3b76e18520330e2a23c86d7c627c1cd4a3ed32f2 (patch) | |
tree | bdab5e9a7671c5496f0c2e67eb5dc4dfaed0c518 /include | |
parent | hw/arm/msf2: Use Clock input to MSF2_SOC instead of m3clk property (diff) | |
download | qemu-3b76e18520330e2a23c86d7c627c1cd4a3ed32f2.tar.gz qemu-3b76e18520330e2a23c86d7c627c1cd4a3ed32f2.tar.xz qemu-3b76e18520330e2a23c86d7c627c1cd4a3ed32f2.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/arm/msf2-soc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/arm/msf2-soc.h b/include/hw/arm/msf2-soc.h index 01f904cec4..ce417a6266 100644 --- a/include/hw/arm/msf2-soc.h +++ b/include/hw/arm/msf2-soc.h @@ -59,6 +59,7 @@ struct MSF2State { uint64_t esram_size; Clock *m3clk; + Clock *refclk; uint8_t apb0div; uint8_t apb1div; |