Re: [NEWBIE] Interrupt-problem mpc5200

2007-09-19 Thread S. Fricke
Hello, Can u give me an example with a single IRQ of a configuration-node for a dts? [EMAIL PROTECTED] { interrupts = 1 2 3; interrupt-parent = mpc5200_pic; }; Ahh - oh weh - so simple! Thank you! The interrupts property matches the size of the #interrupt-cells

Re: [NEWBIE] Interrupt-problem mpc5200

2007-09-19 Thread Grant Likely
On 9/19/07, S. Fricke [EMAIL PROTECTED] wrote: OK, my dts is now: / { /* ... */ [EMAIL PROTECTED] { /* ... */ [EMAIL PROTECTED] { interrupt-parent = 500; interrupts = 1 2 2; }; /* ... */

Re: [NEWBIE] Interrupt-problem mpc5200

2007-09-14 Thread Grant Likely
On 9/14/07, Matt Sealey [EMAIL PROTECTED] wrote: Grant! I have a newbie question which I never had properly answered. On the MPC52xx and specifically regarding the device tree, how are interrupt numbers assigned? On Efika (and in the DT docs) it's basically the X Y Z where X is the type

Re: [NEWBIE] Interrupt-problem mpc5200

2007-09-14 Thread Matt Sealey
Grant Likely wrote: On 9/14/07, Matt Sealey [EMAIL PROTECTED] wrote: sparse, irq_of_find_and_map isn't much help). Maybe I am just not looking in the right place but not being an MPC52xx PIC Expert I wouldn't even know where to start... The l2 irq numbers map directly to the interrupt

Re: [NEWBIE] Interrupt-problem mpc5200

2007-09-12 Thread S. Fricke
Hello, I have looked up kernel/irq/manage.c. -ENOSYS is returned on function setup_irq because the used irq(MPC52xx_IRQ2) is the same as no_irq_chip. THE MPC52xx_IRQ2 is a excerpt from include/ppc/mpc52xx.h (per copy paste), but mpc52xx is (now) a powerpc-arch. What is the desired value

Re: [NEWBIE] Interrupt-problem mpc5200

2007-09-12 Thread Grant Likely
On 9/12/07, S. Fricke [EMAIL PROTECTED] wrote: Hello, I have looked up kernel/irq/manage.c. -ENOSYS is returned on function setup_irq because the used irq(MPC52xx_IRQ2) is the same as no_irq_chip. THE MPC52xx_IRQ2 is a excerpt from include/ppc/mpc52xx.h (per copy paste), but

Re: [NEWBIE] Interrupt-problem mpc5200

2007-09-11 Thread S. Fricke
Dear Linux-enthusiasts, I'm still at the same problem. I have now implemented a irq_chip for the hardwired IRQ2. Now I have: --== volatile static struct mpc52xx_intr __iomem *intr; unsigned long flags; static DEFINE_SPINLOCK(my_irq_controller_lock); /* * HELPER-Function */ static inline

Re: [NEWBIE] Interrupt-problem mpc5200

2007-09-11 Thread Grant Likely
On 9/11/07, S. Fricke [EMAIL PROTECTED] wrote: Dear Linux-enthusiasts, I'm still at the same problem. I have now implemented a irq_chip for the hardwired IRQ2. Now I have: --== volatile static struct mpc52xx_intr __iomem *intr; unsigned long flags; static

Re: [NEWBIE] Interrupt-problem mpc5200

2007-09-11 Thread S. Fricke
Hello, [...] intr = mpc52xx_find_and_map(mpc52xx-pic); if(!intr) { panic(__FILE__ : mpc52xx-pic - MAP failed); } set_irq_chip(MPC52xx_IRQ2, my_irq_chip); You probably don't want to do this (unless you are cascading IRQs to custom external hardware). All

Re: [NEWBIE] Interrupt-problem mpc5200

2007-09-11 Thread Grant Likely
On 9/11/07, S. Fricke [EMAIL PROTECTED] wrote: Hello, [...] intr = mpc52xx_find_and_map(mpc52xx-pic); if(!intr) { panic(__FILE__ : mpc52xx-pic - MAP failed); } set_irq_chip(MPC52xx_IRQ2, my_irq_chip); You probably don't want to do this (unless you

[NEWBIE] Interrupt-problem mpc5200

2007-09-06 Thread S. Fricke
Hello all. What are the steps to configure an MPC500B-Board to react on an IRQ (2)? I have written a test-driver with this code-snippets, but the prozessor hangs when loading the driver. my __init-function looks like: static int __init mod_init( void ) { volatile static struct