aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/maple
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2006-07-31 20:37:25 -0400
committerPaul Mackerras <paulus@samba.org>2006-07-31 20:37:25 -0400
commit57cad8084e0837e0f2c97da789ec9b3f36809be9 (patch)
treee9c790afb4286f78cb08d9664f58baa7e876fe55 /arch/powerpc/platforms/maple
parentcb18bd40030c879cd93fef02fd579f74dbab473d (diff)
parent49b1e3ea19b1c95c2f012b8331ffb3b169e4c042 (diff)
Merge branch 'merge'
Diffstat (limited to 'arch/powerpc/platforms/maple')
-rw-r--r--arch/powerpc/platforms/maple/setup.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/maple/setup.c b/arch/powerpc/platforms/maple/setup.c
index ecc764a3ff3a..fe6b9bff61b9 100644
--- a/arch/powerpc/platforms/maple/setup.c
+++ b/arch/powerpc/platforms/maple/setup.c
@@ -215,10 +215,17 @@ static void __init maple_init_IRQ(void)
215 * in Maple device-tree where the type of the controller is 215 * in Maple device-tree where the type of the controller is
216 * open-pic and not interrupt-controller 216 * open-pic and not interrupt-controller
217 */ 217 */
218 for_each_node_by_type(np, "open-pic") { 218
219 mpic_node = np; 219 for_each_node_by_type(np, "interrupt-controller")
220 break; 220 if (device_is_compatible(np, "open-pic")) {
221 } 221 mpic_node = np;
222 break;
223 }
224 if (mpic_node == NULL)
225 for_each_node_by_type(np, "open-pic") {
226 mpic_node = np;
227 break;
228 }
222 if (mpic_node == NULL) { 229 if (mpic_node == NULL) {
223 printk(KERN_ERR 230 printk(KERN_ERR
224 "Failed to locate the MPIC interrupt controller\n"); 231 "Failed to locate the MPIC interrupt controller\n");
@@ -245,6 +252,8 @@ static void __init maple_init_IRQ(void)
245 252
246 /* XXX Maple specific bits */ 253 /* XXX Maple specific bits */
247 flags |= MPIC_BROKEN_U3 | MPIC_WANTS_RESET; 254 flags |= MPIC_BROKEN_U3 | MPIC_WANTS_RESET;
255 /* All U3/U4 are big-endian, older SLOF firmware doesn't encode this */
256 flags |= MPIC_BIG_ENDIAN;
248 257
249 /* Setup the openpic driver. More device-tree junks, we hard code no 258 /* Setup the openpic driver. More device-tree junks, we hard code no
250 * ISUs for now. I'll have to revisit some stuffs with the folks doing 259 * ISUs for now. I'll have to revisit some stuffs with the folks doing