2016-03-16 18:06:00 +01:00
|
|
|
/*
|
|
|
|
* ASPEED AST2400 SoC
|
|
|
|
*
|
|
|
|
* Andrew Jeffery <andrew@aj.id.au>
|
|
|
|
*
|
|
|
|
* Copyright 2016 IBM Corp.
|
|
|
|
*
|
|
|
|
* This code is licensed under the GPL version 2 or later. See
|
|
|
|
* the COPYING file in the top-level directory.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AST2400_H
|
|
|
|
#define AST2400_H
|
|
|
|
|
|
|
|
#include "hw/arm/arm.h"
|
|
|
|
#include "hw/intc/aspeed_vic.h"
|
2016-06-27 16:37:33 +02:00
|
|
|
#include "hw/misc/aspeed_scu.h"
|
2016-03-16 18:06:00 +01:00
|
|
|
#include "hw/timer/aspeed_timer.h"
|
2016-06-06 17:59:29 +02:00
|
|
|
#include "hw/i2c/aspeed_i2c.h"
|
2016-07-04 14:06:37 +02:00
|
|
|
#include "hw/ssi/aspeed_smc.h"
|
2016-03-16 18:06:00 +01:00
|
|
|
|
|
|
|
typedef struct AST2400State {
|
|
|
|
/*< private >*/
|
|
|
|
DeviceState parent;
|
|
|
|
|
|
|
|
/*< public >*/
|
|
|
|
ARMCPU *cpu;
|
|
|
|
MemoryRegion iomem;
|
|
|
|
AspeedVICState vic;
|
|
|
|
AspeedTimerCtrlState timerctrl;
|
2016-06-06 17:59:29 +02:00
|
|
|
AspeedI2CState i2c;
|
2016-06-27 16:37:33 +02:00
|
|
|
AspeedSCUState scu;
|
2016-07-04 14:06:37 +02:00
|
|
|
AspeedSMCState smc;
|
|
|
|
AspeedSMCState spi;
|
2016-03-16 18:06:00 +01:00
|
|
|
} AST2400State;
|
|
|
|
|
|
|
|
#define TYPE_AST2400 "ast2400"
|
|
|
|
#define AST2400(obj) OBJECT_CHECK(AST2400State, (obj), TYPE_AST2400)
|
|
|
|
|
|
|
|
#define AST2400_SDRAM_BASE 0x40000000
|
|
|
|
|
|
|
|
#endif /* AST2400_H */
|