mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
aspeed: add a GPIO controller to the SoC
Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-id: 20190904070506.1052-3-clg@kaod.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
4b7f956862
commit
fdcc7c0631
2 changed files with 20 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
|||
#include "hw/watchdog/wdt_aspeed.h"
|
||||
#include "hw/net/ftgmac100.h"
|
||||
#include "target/arm/cpu.h"
|
||||
#include "hw/gpio/aspeed_gpio.h"
|
||||
|
||||
#define ASPEED_SPIS_NUM 2
|
||||
#define ASPEED_WDTS_NUM 3
|
||||
|
@ -48,6 +49,7 @@ typedef struct AspeedSoCState {
|
|||
AspeedSDMCState sdmc;
|
||||
AspeedWDTState wdt[ASPEED_WDTS_NUM];
|
||||
FTGMAC100State ftgmac100[ASPEED_MACS_NUM];
|
||||
AspeedGPIOState gpio;
|
||||
} AspeedSoCState;
|
||||
|
||||
#define TYPE_ASPEED_SOC "aspeed-soc"
|
||||
|
@ -61,6 +63,7 @@ typedef struct AspeedSoCInfo {
|
|||
int spis_num;
|
||||
const char *fmc_typename;
|
||||
const char **spi_typename;
|
||||
const char *gpio_typename;
|
||||
int wdts_num;
|
||||
const int *irqmap;
|
||||
const hwaddr *memmap;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue