4 * Andrew Jeffery <andrew@aj.id.au>
6 * Copyright 2016 IBM Corp.
8 * This code is licensed under the GPL version 2 or later. See
9 * the COPYING file in the top-level directory.
15 #include "hw/cpu/a15mpcore.h"
16 #include "hw/intc/aspeed_vic.h"
17 #include "hw/misc/aspeed_scu.h"
18 #include "hw/misc/aspeed_sdmc.h"
19 #include "hw/misc/aspeed_xdma.h"
20 #include "hw/timer/aspeed_timer.h"
21 #include "hw/rtc/aspeed_rtc.h"
22 #include "hw/i2c/aspeed_i2c.h"
23 #include "hw/ssi/aspeed_smc.h"
24 #include "hw/watchdog/wdt_aspeed.h"
25 #include "hw/net/ftgmac100.h"
26 #include "target/arm/cpu.h"
27 #include "hw/gpio/aspeed_gpio.h"
28 #include "hw/sd/aspeed_sdhci.h"
29 #include "hw/usb/hcd-ehci.h"
30 #include "qom/object.h"
32 #define ASPEED_SPIS_NUM 2
33 #define ASPEED_EHCIS_NUM 2
34 #define ASPEED_WDTS_NUM 4
35 #define ASPEED_CPUS_NUM 2
36 #define ASPEED_MACS_NUM 4
38 struct AspeedSoCState
{
43 ARMCPU cpu
[ASPEED_CPUS_NUM
];
44 A15MPPrivState a7mpcore
;
45 MemoryRegion
*dram_mr
;
49 AspeedTimerCtrlState timerctrl
;
54 AspeedSMCState spi
[ASPEED_SPIS_NUM
];
55 EHCISysBusState ehci
[ASPEED_EHCIS_NUM
];
57 AspeedWDTState wdt
[ASPEED_WDTS_NUM
];
58 FTGMAC100State ftgmac100
[ASPEED_MACS_NUM
];
59 AspeedMiiState mii
[ASPEED_MACS_NUM
];
61 AspeedGPIOState gpio_1_8v
;
62 AspeedSDHCIState sdhci
;
63 AspeedSDHCIState emmc
;
66 #define TYPE_ASPEED_SOC "aspeed-soc"
67 OBJECT_DECLARE_TYPE(AspeedSoCState
, AspeedSoCClass
, ASPEED_SOC
)
69 struct AspeedSoCClass
{
70 DeviceClass parent_class
;
107 ASPEED_DEV_GPIO_1_8V
,
135 #endif /* ASPEED_SOC_H */