cpm2: Updates for CPM2 pic
Subsystems (2)
PATCH 1/1 cpm2: Updates for CPM2 pic
This contains important fixes for the CPM2 PIC code. Eliminated CPM_IRQ_OFFSET, pulling the respective interrupt numbers from the interrupt mapping. Updated devicetree files to reflect that. Changed direct IC-related IO accesses to the IO accessors.
---
arch/powerpc/boot/dts/mpc8560ads.dts | 8 ++- arch/powerpc/sysdev/cpm2_pic.c | 78 ++++++++++++---------------------- 2 files changed, 31 insertions(+), 55 deletions(-)
arch/powerpc/boot/dts/mpc8560ads.dts +4 -4
@@ -250,7 +250,7 @@ rx-clock = <1>; tx-clock = <1>; current-speed = <1c200>; - interrupts = <64 1>; + interrupts = <28 1>; interrupt-parent = <90c00>; };
@@ -264,7 +264,7 @@ rx-clock = <2>; tx-clock = <2>; current-speed = <1c200>; - interrupts = <65 1>; + interrupts = <29 1>; interrupt-parent = <90c00>; };
@@ -278,7 +278,7 @@ clock-setup = <ff00ffff 250000>; rx-clock = <15>; tx-clock = <16>; - interrupts = <5d 1>; + interrupts = <21 1>; interrupt-parent = <90c00>; phy-handle = <2452002>; };
@@ -293,7 +293,7 @@ clock-setup = <ffff00ff 3700>; rx-clock = <17>; tx-clock = <18>; - interrupts = <5e 1>; + interrupts = <22 1>; interrupt-parent = <90c00>; phy-handle = <2452003>; };
arch/powerpc/sysdev/cpm2_pic.c +27 -51
171 lines not on this page · raw message