[ARM] 3540/1: ixp23xx: deal with gap in interrupt bitmasks
authorLennert Buytenhek <buytenh@wantstofly.org>
Fri, 2 Jun 2006 18:51:51 +0000 (19:51 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 2 Jun 2006 18:51:51 +0000 (19:51 +0100)
commitec8510f6fe57f59e42484809679af31ca7896dcf
treedc9a9ac88bd7847da9d1e80b532d30815853fd0b
parenta77bc69138a4f52d003ca81d075f386953f6b25a
[ARM] 3540/1: ixp23xx: deal with gap in interrupt bitmasks

Patch from Lennert Buytenhek

On the ixp23xx, the microengine thread interrupt sources are numbered
56..119, but their mask/status bits are located in bit positions 64..127
in the various registers in the interrupt controller (bit positions
56..63 are unused.)

We don't deal with this, so currently, when asked to enable IRQ 64, we
will enable IRQ 56 instead.

The only interrupts >= 64 are the thread interrupt sources, and there
are no in-tree users of those yet, so this is fortunately not a big
problem, but this needs fixing anyway.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-ixp23xx/core.c