Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123070
b: refs/heads/master
c: 06be64a
h: refs/heads/master
v: v3
  • Loading branch information
Haiying Wang authored and Kumar Gala committed Dec 3, 2008
1 parent 9c69a9a commit b8da52e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c64ef80b517680f1e228b2ee55e3ce7cd94c7fe0
refs/heads/master: 06be64a366885569f46a7e0e50b351266d28f5fc
11 changes: 10 additions & 1 deletion trunk/arch/powerpc/platforms/85xx/mpc85xx_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ void __init mpc85xx_ds_pic_init(void)
struct device_node *cascade_node = NULL;
int cascade_irq;
#endif
unsigned long root = of_get_flat_dt_root();

np = of_find_node_by_type(NULL, "open-pic");
if (np == NULL) {
Expand All @@ -76,11 +77,19 @@ void __init mpc85xx_ds_pic_init(void)
return;
}

mpic = mpic_alloc(np, r.start,
if (of_flat_dt_is_compatible(root, "fsl,MPC8572DS-CAMP")) {
mpic = mpic_alloc(np, r.start,
MPIC_PRIMARY |
MPIC_BIG_ENDIAN | MPIC_BROKEN_FRR_NIRQS,
0, 256, " OpenPIC ");
} else {
mpic = mpic_alloc(np, r.start,
MPIC_PRIMARY | MPIC_WANTS_RESET |
MPIC_BIG_ENDIAN | MPIC_BROKEN_FRR_NIRQS |
MPIC_SINGLE_DEST_CPU,
0, 256, " OpenPIC ");
}

BUG_ON(mpic == NULL);
of_node_put(np);

Expand Down

0 comments on commit b8da52e

Please sign in to comment.