hw/arm/mps2-tz: Allow PPCPortInfo structures to specify device interrupts
commit424182791bae6dc9526b7e6d149848f237dbc046
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 15 Feb 2021 11:51:26 +0000 (15 11:51 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Sat, 6 Mar 2021 13:30:39 +0000 (6 13:30 +0000)
tree31ce368248cf8e75b0b036e74e5045d6f57139a0
parentfee887a7b067faf1f9bc2d6c1d5fef787aadaf4a
hw/arm/mps2-tz: Allow PPCPortInfo structures to specify device interrupts

The mps2-tz code uses PPCPortInfo data structures to define what
devices are present and how they are wired up.  Currently we use
these to specify device types and addresses, but hard-code the
interrupt line wiring in each make_* helper function.  This works for
the two boards we have at the moment, but the AN524 has some devices
with different interrupt assignments.

This commit adds the framework to allow PPCPortInfo structures to
specify interrupt numbers.  We add an array of interrupt numbers to
the PPCPortInfo struct, and pass it through to the make_* helpers.
The following commit will change the make_* helpers over to using the
framework.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210215115138.20465-13-peter.maydell@linaro.org
hw/arm/mps2-tz.c