mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-06 06:27:41 -07:00
aspeed: Parameterise number of MACs
To support the ast2600's four MACs allow SoCs to specify the number they have, and create that many. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-id: 20190925143248.10000-22-clg@kaod.org [clg: - included a check on sc->macs_num when realizing the macs - included interrupt definitions for the AST2600 ] Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
519370bc63
commit
d300db0277
3 changed files with 16 additions and 5 deletions
|
|
@ -30,7 +30,7 @@
|
|||
#define ASPEED_SPIS_NUM 2
|
||||
#define ASPEED_WDTS_NUM 4
|
||||
#define ASPEED_CPUS_NUM 2
|
||||
#define ASPEED_MACS_NUM 2
|
||||
#define ASPEED_MACS_NUM 4
|
||||
|
||||
typedef struct AspeedSoCState {
|
||||
/*< private >*/
|
||||
|
|
@ -69,6 +69,7 @@ typedef struct AspeedSoCClass {
|
|||
uint64_t sram_size;
|
||||
int spis_num;
|
||||
int wdts_num;
|
||||
int macs_num;
|
||||
const int *irqmap;
|
||||
const hwaddr *memmap;
|
||||
uint32_t num_cpus;
|
||||
|
|
@ -114,6 +115,8 @@ enum {
|
|||
ASPEED_I2C,
|
||||
ASPEED_ETH1,
|
||||
ASPEED_ETH2,
|
||||
ASPEED_ETH3,
|
||||
ASPEED_ETH4,
|
||||
ASPEED_SDRAM,
|
||||
ASPEED_XDMA,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue