mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
hw/arm/allwinner-h3: add System Control module
The Allwinner H3 System on Chip has an System Control module that provides system wide generic controls and device information. This commit adds support for the Allwinner H3 System Control module. Signed-off-by: Niek Linnenbank <nieklinnenbank@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20200311221854.30370-6-nieklinnenbank@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
2e4dfe80f0
commit
7e83c9ddbb
5 changed files with 219 additions and 1 deletions
|
@ -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-h3-sysctrl.h"
|
||||
#include "target/arm/cpu.h"
|
||||
|
||||
/**
|
||||
|
@ -56,6 +57,7 @@ enum {
|
|||
AW_H3_SRAM_A1,
|
||||
AW_H3_SRAM_A2,
|
||||
AW_H3_SRAM_C,
|
||||
AW_H3_SYSCTRL,
|
||||
AW_H3_EHCI0,
|
||||
AW_H3_OHCI0,
|
||||
AW_H3_EHCI1,
|
||||
|
@ -108,6 +110,7 @@ typedef struct AwH3State {
|
|||
const hwaddr *memmap;
|
||||
AwA10PITState timer;
|
||||
AwH3ClockCtlState ccu;
|
||||
AwH3SysCtrlState sysctrl;
|
||||
GICState gic;
|
||||
MemoryRegion sram_a1;
|
||||
MemoryRegion sram_a2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue