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/arm/arm.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/timer/aspeed_timer.h"
20 #include "hw/i2c/aspeed_i2c.h"
21 #include "hw/ssi/aspeed_smc.h"
23 typedef struct AspeedSoCState
{
31 AspeedTimerCtrlState timerctrl
;
39 #define TYPE_ASPEED_SOC "aspeed-soc"
40 #define ASPEED_SOC(obj) OBJECT_CHECK(AspeedSoCState, (obj), TYPE_ASPEED_SOC)
42 typedef struct AspeedSoCInfo
{
44 const char *cpu_model
;
49 typedef struct AspeedSoCClass
{
50 DeviceClass parent_class
;
54 #define ASPEED_SOC_CLASS(klass) \
55 OBJECT_CLASS_CHECK(AspeedSoCClass, (klass), TYPE_ASPEED_SOC)
56 #define ASPEED_SOC_GET_CLASS(obj) \
57 OBJECT_GET_CLASS(AspeedSoCClass, (obj), TYPE_ASPEED_SOC)
59 #endif /* ASPEED_SOC_H */