summary refs log tree commit diff stats
path: root/hw/misc/mps2-fpgaio.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2021-02-15 11:51:26 +0000
committerPeter Maydell <peter.maydell@linaro.org>2021-03-06 13:30:39 +0000
commit424182791bae6dc9526b7e6d149848f237dbc046 (patch)
tree31ce368248cf8e75b0b036e74e5045d6f57139a0 /hw/misc/mps2-fpgaio.c
parentfee887a7b067faf1f9bc2d6c1d5fef787aadaf4a (diff)
downloadfocaccia-qemu-424182791bae6dc9526b7e6d149848f237dbc046.tar.gz
focaccia-qemu-424182791bae6dc9526b7e6d149848f237dbc046.zip
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
Diffstat (limited to 'hw/misc/mps2-fpgaio.c')
0 files changed, 0 insertions, 0 deletions