OSDN Git Service

MIPS: Netlogic: Avoid using fixed PIC IRT index
authorJayachandran C <jchandra@broadcom.com>
Sat, 23 Mar 2013 17:27:56 +0000 (17:27 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 7 May 2013 23:19:04 +0000 (01:19 +0200)
commit3c0553e7347a96519ea232a9235dfb0eb1c6d3ec
tree037e19370c2dfdc52bf4220c4ca5d718adfef4c9
parent62b734d289989dd15ab7a52227879ce95db9a934
MIPS: Netlogic: Avoid using fixed PIC IRT index

The index for a device interrupt in the PIC interrupt routing table
changes for different chips in the XLP family.  Avoid using the fixed
entries and derive the index value from the SoC device header.

Add workarounds for some devices which do not report the IRT index
correctly.

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Patchwork: http://patchwork.linux-mips.org/patch/5025/
Acked-by: John Crispin <blogic@openwrt.org>
arch/mips/include/asm/netlogic/xlp-hal/pic.h
arch/mips/netlogic/xlp/nlm_hal.c