]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Malta: Probe interrupt controllers via DT
authorPaul Burton <paul.burton@imgtec.com>
Mon, 19 Sep 2016 21:21:23 +0000 (22:21 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 6 Oct 2016 15:31:00 +0000 (17:31 +0200)
commit38af56900f3c5c82828a603fc9d0230c89fac3e8
tree28131aec3dcd30f800691a7617b424433c3b03d9
parenteb4518bef3adb769996121d1c229cc305928cd22
MIPS: Malta: Probe interrupt controllers via DT

Probe the CPU, GIC & i8259 interrupt controllers present in the Malta
system using device tree. This enables interrupts to be provided to
devices using device tree as they are moved over to being probed using
it.

Since Malta is very configurable it's unknown whether a GIC will be
present at compile time. In order to support both cases the
malta_dt_shim code is added in order to detect whether a GIC is present,
adjusting the DT to route interrupts correctly and nop out the GIC node
if no GIC is found.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: devicetree@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14274/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig
arch/mips/boot/dts/mti/malta.dts
arch/mips/mti-malta/malta-dtshim.c
arch/mips/mti-malta/malta-int.c