diff options
author | Olof Johansson <olof@lixom.net> | 2007-09-07 15:13:19 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-09-13 11:33:25 -0400 |
commit | 0d72ba930cbc9140a584af7e4e65041b6c7a7d18 (patch) | |
tree | 8dd36503702183fb15f5e783249433c9880e45ee /include/asm-powerpc/mpic.h | |
parent | 2099172d61abda1b793b499bb8edcaac4de2cdae (diff) |
[POWERPC] Add workaround for MPICs with broken register reads
Some versions of PWRficient 1682M have an interrupt controller in which
the first register in each pair for interrupt sources doesn't always
read with the right polarity/sense values.
To work around this, keep a software copy of the register instead. Since
it's not modified from the mpic itself, it's a feasible solution. Still,
keep it under a config option to avoid wasting memory on other platforms.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/mpic.h')
-rw-r--r-- | include/asm-powerpc/mpic.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-powerpc/mpic.h b/include/asm-powerpc/mpic.h index 0eb3ab9ec2bb..edb4a7c84506 100644 --- a/include/asm-powerpc/mpic.h +++ b/include/asm-powerpc/mpic.h | |||
@@ -306,6 +306,10 @@ struct mpic | |||
306 | unsigned long *hwirq_bitmap; | 306 | unsigned long *hwirq_bitmap; |
307 | #endif | 307 | #endif |
308 | 308 | ||
309 | #ifdef CONFIG_MPIC_BROKEN_REGREAD | ||
310 | u32 isu_reg0_shadow[MPIC_MAX_IRQ_SOURCES]; | ||
311 | #endif | ||
312 | |||
309 | /* link */ | 313 | /* link */ |
310 | struct mpic *next; | 314 | struct mpic *next; |
311 | 315 | ||