mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
hw/arm/allwinner-a10: initialize EMAC
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com> Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
22f90bcb2b
commit
db7dfd4c7e
3 changed files with 28 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
|||
#include "hw/arm/arm.h"
|
||||
#include "hw/timer/allwinner-a10-pit.h"
|
||||
#include "hw/intc/allwinner-a10-pic.h"
|
||||
#include "hw/net/allwinner_emac.h"
|
||||
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
@ -14,6 +15,7 @@
|
|||
#define AW_A10_PIC_REG_BASE 0x01c20400
|
||||
#define AW_A10_PIT_REG_BASE 0x01c20c00
|
||||
#define AW_A10_UART0_REG_BASE 0x01c28000
|
||||
#define AW_A10_EMAC_BASE 0x01c0b000
|
||||
|
||||
#define AW_A10_SDRAM_BASE 0x40000000
|
||||
|
||||
|
@ -29,6 +31,7 @@ typedef struct AwA10State {
|
|||
qemu_irq irq[AW_A10_PIC_INT_NR];
|
||||
AwA10PITState timer;
|
||||
AwA10PICState intc;
|
||||
AwEmacState emac;
|
||||
} AwA10State;
|
||||
|
||||
#define ALLWINNER_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue