diff options
author | Olof Johansson <olof@lixom.net> | 2007-01-29 00:33:18 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-02-06 22:03:19 -0500 |
commit | 7df2457db83bc922fcc8b462526b77f1ffe8c84b (patch) | |
tree | 7029d9e27b858e435c2fc4ce9a6d83a2b028e290 /arch/powerpc/platforms/pasemi | |
parent | 6529c13dfe413e437ad1ed0e97783dcf69137114 (diff) |
[POWERPC] MPIC: support more than 256 sources
Allow more than the default 256 MPIC sources. Allocates a new flag
(MPIC_LARGE_VECTORS) to be used by platform code when instantiating
the mpic.
I picked 11 bits worth right now since it would cover the number of
sources on any hardware I have seen. It can always be increased later
if needed.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/pasemi')
-rw-r--r-- | arch/powerpc/platforms/pasemi/setup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/pasemi/setup.c b/arch/powerpc/platforms/pasemi/setup.c index bea7d1bb1a3b..0505dd884ae2 100644 --- a/arch/powerpc/platforms/pasemi/setup.c +++ b/arch/powerpc/platforms/pasemi/setup.c | |||
@@ -130,8 +130,9 @@ static __init void pas_init_IRQ(void) | |||
130 | openpic_addr = of_read_number(opprop, naddr); | 130 | openpic_addr = of_read_number(opprop, naddr); |
131 | printk(KERN_DEBUG "OpenPIC addr: %lx\n", openpic_addr); | 131 | printk(KERN_DEBUG "OpenPIC addr: %lx\n", openpic_addr); |
132 | 132 | ||
133 | mpic = mpic_alloc(mpic_node, openpic_addr, MPIC_PRIMARY, 0, 0, | 133 | mpic = mpic_alloc(mpic_node, openpic_addr, |
134 | " PAS-OPIC "); | 134 | MPIC_PRIMARY|MPIC_LARGE_VECTORS, |
135 | 0, 0, " PAS-OPIC "); | ||
135 | BUG_ON(!mpic); | 136 | BUG_ON(!mpic); |
136 | 137 | ||
137 | mpic_assign_isu(mpic, 0, openpic_addr + 0x10000); | 138 | mpic_assign_isu(mpic, 0, openpic_addr + 0x10000); |