mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
hw/arm/armsse: Wire up clocks
Create two input clocks on the ARMSSE devices, one for the normal MAINCLK, and one for the 32KHz S32KCLK, and wire these up to the appropriate devices. The old property-based clock frequency setting will remain in place until conversion is complete. This is a migration compatibility break for machines mps2-an505, mps2-an521, musca-a, musca-b1. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Luc Michel <luc@lmichel.fr> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20210128114145.20536-12-peter.maydell@linaro.org Message-id: 20210121190622.22000-12-peter.maydell@linaro.org
This commit is contained in:
parent
13059a3a10
commit
8fd34dc0c4
2 changed files with 21 additions and 2 deletions
|
@ -37,6 +37,8 @@
|
|||
* per-CPU identity and control register blocks
|
||||
*
|
||||
* QEMU interface:
|
||||
* + Clock input "MAINCLK": clock for CPUs and most peripherals
|
||||
* + Clock input "S32KCLK": slow 32KHz clock used for a few peripherals
|
||||
* + QOM property "memory" is a MemoryRegion containing the devices provided
|
||||
* by the board model.
|
||||
* + QOM property "MAINCLK_FRQ" is the frequency of the main system clock
|
||||
|
@ -103,6 +105,7 @@
|
|||
#include "hw/misc/armsse-mhu.h"
|
||||
#include "hw/misc/unimp.h"
|
||||
#include "hw/or-irq.h"
|
||||
#include "hw/clock.h"
|
||||
#include "hw/core/split-irq.h"
|
||||
#include "hw/cpu/cluster.h"
|
||||
#include "qom/object.h"
|
||||
|
@ -209,6 +212,9 @@ struct ARMSSE {
|
|||
|
||||
uint32_t nsccfg;
|
||||
|
||||
Clock *mainclk;
|
||||
Clock *s32kclk;
|
||||
|
||||
/* Properties */
|
||||
MemoryRegion *board_memory;
|
||||
uint32_t exp_numirq;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue