diff options
| author | Niek Linnenbank | 2020-03-11 23:18:42 +0100 |
|---|---|---|
| committer | Peter Maydell | 2020-03-12 17:27:33 +0100 |
| commit | d26af5ded95c9fb9031786bf10ab0ad7c0e848e9 (patch) | |
| tree | 883b2539ea256dc072534d827749f7814ddae38c /include/hw/arm | |
| parent | hw/arm/allwinner-h3: add System Control module (diff) | |
| download | qemu-d26af5ded95c9fb9031786bf10ab0ad7c0e848e9.tar.gz qemu-d26af5ded95c9fb9031786bf10ab0ad7c0e848e9.tar.xz qemu-d26af5ded95c9fb9031786bf10ab0ad7c0e848e9.zip | |
hw/arm/allwinner: add CPU Configuration module
Various Allwinner System on Chip designs contain multiple processors
that can be configured and reset using the generic CPU Configuration
module interface. This commit adds support for the Allwinner CPU
configuration interface which emulates the following features:
* CPU reset
* CPU status
Signed-off-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20200311221854.30370-7-nieklinnenbank@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/arm')
| -rw-r--r-- | include/hw/arm/allwinner-h3.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/arm/allwinner-h3.h b/include/hw/arm/allwinner-h3.h index 43500c4262..dc729176ab 100644 --- a/include/hw/arm/allwinner-h3.h +++ b/include/hw/arm/allwinner-h3.h @@ -40,6 +40,7 @@ #include "hw/timer/allwinner-a10-pit.h" #include "hw/intc/arm_gic.h" #include "hw/misc/allwinner-h3-ccu.h" +#include "hw/misc/allwinner-cpucfg.h" #include "hw/misc/allwinner-h3-sysctrl.h" #include "target/arm/cpu.h" @@ -76,6 +77,7 @@ enum { AW_H3_GIC_CPU, AW_H3_GIC_HYP, AW_H3_GIC_VCPU, + AW_H3_CPUCFG, AW_H3_SDRAM }; @@ -110,6 +112,7 @@ typedef struct AwH3State { const hwaddr *memmap; AwA10PITState timer; AwH3ClockCtlState ccu; + AwCpuCfgState cpucfg; AwH3SysCtrlState sysctrl; GICState gic; MemoryRegion sram_a1; |
