aspeed: Parameterise number of MACs
commitd300db02774b2225cd8a527ee6212e093e94fdce
authorJoel Stanley <joel@jms.id.au>
Wed, 25 Sep 2019 14:32:46 +0000 (25 16:32 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Oct 2019 17:09:05 +0000 (15 18:09 +0100)
treea70fd2ab9de3b8cd5dfb307cfd53765ccff92acc
parent519370bc63ea885ee8e69eb5dc3c64799206e5b2
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>
hw/arm/aspeed_ast2600.c
hw/arm/aspeed_soc.c
include/hw/arm/aspeed_soc.h