Thread (6 messages) 6 messages, 4 authors, 2008-12-18

Re: [PATCH v2] powerpc/4xx: DTS: Add Add'l SDRAM0 Compatible and Interrupt Info

From: Grant Erickson <hidden>
Date: 2008-12-18 18:05:56

On 12/18/08 9:56 AM, Josh Boyer wrote:
On Thu, Dec 18, 2008 at 09:04:23AM +0100, Stefan Roese wrote:
quoted
On Thursday 18 December 2008, Grant Erickson wrote:
quoted
diff --git a/arch/powerpc/boot/dts/haleakala.dts
b/arch/powerpc/boot/dts/haleakala.dts index 513bc43..64880ab 100644
--- a/arch/powerpc/boot/dts/haleakala.dts
+++ b/arch/powerpc/boot/dts/haleakala.dts
@@ -89,8 +89,14 @@
clock-frequency = <0>; /* Filled in by U-Boot */

SDRAM0: memory-controller {
-   compatible = "ibm,sdram-405exr";
+   compatible = "ibm,sdram-405exr", "ibm,sdram-4xx-ddr2";
dcr-reg = <0x010 0x002>;
+   #interrupt-cells = <1>;
+   interrupt-parent = <&SDRAM0>;
+   interrupts = <0x0 0x1>;
+   interrupt-map = </* ECCDED Error */ 0x0 &UIC2 0x5 0x4
+      /* ECCSEC Error */ 0x1 &UIC2 0x6 0x4>;
+   interrupt-map-mask = <0xffffffff>;
When all interrupts are mapped the same parent, this should do as well:

interrupt-parent = <&UIC2>;
interrupts = <0x5 0x4 /* ECCDED Error */
     0x6 0x4>; /* ECCSEC Error */

Other than this:

Acked-by: Stefan Roese <sr@denx.de>
Yeah, I agree.  Adding an interrupt map when it's not needed is
just complexity that doesn't need to be there.
Stefan and Josh:
From a programmatic perspective, does the above still allow the code to
index virtual interrupt indices 0 and 1 rather than 5 and 6 when calling
irq_of_parse_and_map()?

Regards,

Grant
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help