mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
hw/arm: versal: Embed the UARTs into the SoC type
Embed the UARTs into the SoC type. Suggested-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Luc Michel <luc.michel@greensocs.com> Message-id: 20200427181649.26851-5-edgar.iglesias@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
0b79d1baee
commit
88052ffdd1
2 changed files with 8 additions and 7 deletions
|
@ -15,6 +15,7 @@
|
|||
#include "hw/sysbus.h"
|
||||
#include "hw/arm/boot.h"
|
||||
#include "hw/intc/arm_gicv3.h"
|
||||
#include "hw/char/pl011.h"
|
||||
|
||||
#define TYPE_XLNX_VERSAL "xlnx-versal"
|
||||
#define XLNX_VERSAL(obj) OBJECT_CHECK(Versal, (obj), TYPE_XLNX_VERSAL)
|
||||
|
@ -49,7 +50,7 @@ typedef struct Versal {
|
|||
MemoryRegion mr_ocm;
|
||||
|
||||
struct {
|
||||
SysBusDevice *uart[XLNX_VERSAL_NR_UARTS];
|
||||
PL011State uart[XLNX_VERSAL_NR_UARTS];
|
||||
SysBusDevice *gem[XLNX_VERSAL_NR_GEMS];
|
||||
SysBusDevice *adma[XLNX_VERSAL_NR_ADMAS];
|
||||
} iou;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue