MPIC on NXP (Freescale) P2020 supports following irq ranges: > 0 - 11 (External interrupt) > 16 - 79 (Internal interrupt) > 176 - 183 (Messaging interrupt) > 224 - 231 (Shared message signaled interrupt) We have to remove "irq_count" from platform code as platform is given precedence over device-tree, while I think device-tree should have precedence. Signed-off-by: Bharat Bhushan <Bharat.Bhushan@xxxxxxx> --- arch/powerpc/boot/dts/fsl/p2020si-post.dtsi | 3 +++ arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi b/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi index 884e01b..08e266b 100644 --- a/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi @@ -192,6 +192,9 @@ /include/ "pq3-sec3.1-0.dtsi" /include/ "pq3-mpic.dtsi" /include/ "pq3-mpic-timer-B.dtsi" + pic@40000 { + supported-irq-ranges = <0 11 16 79 176 183 224 231>; + }; global-utilities@e0000 { compatible = "fsl,p2020-guts"; diff --git a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c index 1006950..49ff348 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c @@ -57,6 +57,11 @@ void __init mpc85xx_rdb_pic_init(void) MPIC_BIG_ENDIAN | MPIC_SINGLE_DEST_CPU, 0, 256, " OpenPIC "); + } else if (of_machine_is_compatible("fsl,P2020RDB-PC")) { + mpic = mpic_alloc(NULL, 0, + MPIC_BIG_ENDIAN | + MPIC_SINGLE_DEST_CPU, + 0, 0, " OpenPIC "); } else { mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN | -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html