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/intc/aspeed_vic.h"
16 #include "hw/misc/aspeed_scu.h"
17 #include "hw/misc/aspeed_sdmc.h"
18 #include "hw/timer/aspeed_timer.h"
19 #include "hw/timer/aspeed_rtc.h"
20 #include "hw/i2c/aspeed_i2c.h"
21 #include "hw/ssi/aspeed_smc.h"
22 #include "hw/watchdog/wdt_aspeed.h"
23 #include "hw/net/ftgmac100.h"
25 #define ASPEED_SPIS_NUM 2
26 #define ASPEED_WDTS_NUM 3
27 #define ASPEED_CPUS_NUM 2
29 typedef struct AspeedSoCState
{
34 ARMCPU cpu
[ASPEED_CPUS_NUM
];
39 AspeedTimerCtrlState timerctrl
;
43 AspeedSMCState spi
[ASPEED_SPIS_NUM
];
45 AspeedWDTState wdt
[ASPEED_WDTS_NUM
];
46 FTGMAC100State ftgmac100
;
49 #define TYPE_ASPEED_SOC "aspeed-soc"
50 #define ASPEED_SOC(obj) OBJECT_CHECK(AspeedSoCState, (obj), TYPE_ASPEED_SOC)
52 typedef struct AspeedSoCInfo
{
58 const char *fmc_typename
;
59 const char **spi_typename
;
66 typedef struct AspeedSoCClass
{
67 DeviceClass parent_class
;
71 #define ASPEED_SOC_CLASS(klass) \
72 OBJECT_CLASS_CHECK(AspeedSoCClass, (klass), TYPE_ASPEED_SOC)
73 #define ASPEED_SOC_GET_CLASS(obj) \
74 OBJECT_GET_CLASS(AspeedSoCClass, (obj), TYPE_ASPEED_SOC)
112 #endif /* ASPEED_SOC_H */