[NEWBIE] Interrupt-problem mpc5200
S. Fricke
silvio.fricke at googlemail.com
Wed Sep 12 04:28:11 EST 2007
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 you should need is the call to
> request_irq() to register your irq handler, and code in your ISR
> handler to clear the interrupt condition.
>
> You do *NOT* want to program the interrupt controller directly. The
> mpc5200 interrupt controller already has a driver. Don't go twiddling
> the registers manually.
OK!
I have tried it before and i get a "-ENOSYS" returned.
My code was/is now:
--==>
request_irq(MPC52xx_IRQ2, intmod_isr, IRQF_DISABLED , "intmod",
INTMOD_IRQ_BOARD);
<==--
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 for
IRQ-2 on a mpc5200b?
best regards,
Silvio Fricke
--
-- S. Fricke ----------------------------- MAILTO:silvio.fricke at gmail.com --
Diplom-Informatiker (FH)
Linux-Entwicklung JABBER: fricke at jabber.org
----------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20070911/e14e1db6/attachment.pgp>
More information about the Linuxppc-dev
mailing list