-# Copyright (c) 2012-2016,2019 ARM Limited
+# Copyright (c) 2012-2016,2019-2020 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
raise(("Interrupt number smaller than 32 "+
" in PioDevice %s") % name)
- # subtracting 32 because Linux assumes that SPIs start at 0, while
- # gem5 uses the internal GIC numbering (SPIs start at 32)
+ gic = self._parent.unproxy(self).gic
+
node.append(FdtPropertyWords("interrupts", sum(
- [[0, i.num - 32, 4] for i in interrupts], []) ))
+ [ i.generateFdtProperty(gic) for i in interrupts], []) ))
return node