mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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
This commit is contained in:
parent
9bfaf3754b
commit
3b76e18520
2 changed files with 24 additions and 0 deletions
|
@ -59,6 +59,7 @@ struct MSF2State {
|
|||
uint64_t esram_size;
|
||||
|
||||
Clock *m3clk;
|
||||
Clock *refclk;
|
||||
uint8_t apb0div;
|
||||
uint8_t apb1div;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue