powerpc/pasemi: Fix Nemo SB600 i8259 interrupts.
authorDarren Stevens <darren@stevens-zone.net>
Wed, 31 Aug 2016 12:24:40 +0000 (13:24 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 13 Sep 2016 07:37:08 +0000 (17:37 +1000)
commit50246787655d41faea35a83031c47c429144d531
tree388165909b9e98d374508470ff2f20c089435687
parent88c13e2f4f0487a67f9eed044b56f2a373fbfbcd
powerpc/pasemi: Fix Nemo SB600 i8259 interrupts.

The device tree on the Nemo passes all of the i8259 interrupts with
numbers between 212 and 222, and points their interrupt-parent property
to the pasemi-opic, requiring custom patches to the kernel. Fix the
values so that they can be controlled by the generic ppc i8259 code.

Signed-off-by: Darren Stevens <darren@stevens-zone.net>
[mpe: Rework deeply nested if and boundary checks]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/prom_init.c