Skip to content
  • Peter Maydell's avatar
    42418279
    hw/arm/mps2-tz: Allow PPCPortInfo structures to specify device interrupts · 42418279
    Peter Maydell authored
    
    
    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: default avatarPeter Maydell <peter.maydell@linaro.org>
    Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
    Message-id: 20210215115138.20465-13-peter.maydell@linaro.org
    42418279
    hw/arm/mps2-tz: Allow PPCPortInfo structures to specify device interrupts
    Peter Maydell authored
    
    
    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: default avatarPeter Maydell <peter.maydell@linaro.org>
    Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
    Message-id: 20210215115138.20465-13-peter.maydell@linaro.org
Loading