* SIU_INT_IRQ4 in MPC 8260
@ 2006-07-07 9:05 jagannathanjay
2006-07-07 9:18 ` Li Yang-r58472
2006-07-07 9:39 ` Laurent Pinchart
0 siblings, 2 replies; 4+ messages in thread
From: jagannathanjay @ 2006-07-07 9:05 UTC (permalink / raw)
To: linuxppc-embedded
Hi all
I am trying to set up a interrupt handler for SIU_INT_IRQ4.
The target I am using is MPC 8260 , emmbedded planet Evaluation board.
The OS is Embedded Linux .
-------------------------------------------------------------------------
------------
void my_interrupt_handler(int irq, void *dev_id, struct pt_regs *regs)
{
printk("*********** \n");
}
if( request_irq(SIU_INT_IRQ4,my_interrupt_handler,0,0,0) < 0)
{
printk("\n unable to register the interrupt handler \n");
}
-------------------------------------------------------------------------
------------
But my_interrupt_handler isn't getting called .
Can anyone help me to fix this problem
Regards
Jagan
________________________________________________________________________
Check Out the new free AIM(R) Mail -- 2 GB of storage and
industry-leading spam and email virus protection.
^ permalink raw reply [flat|nested] 4+ messages in thread* RE: SIU_INT_IRQ4 in MPC 8260
2006-07-07 9:05 SIU_INT_IRQ4 in MPC 8260 jagannathanjay
@ 2006-07-07 9:18 ` Li Yang-r58472
2006-07-07 9:39 ` Laurent Pinchart
1 sibling, 0 replies; 4+ messages in thread
From: Li Yang-r58472 @ 2006-07-07 9:18 UTC (permalink / raw)
To: jagannathanjay, linuxppc-embedded
Are you sure the IRQ4 line is generating irqs? Did you measure the line
using an oscilloscope?
Best Regards,
Leo
> -----Original Message-----
> From: linuxppc-embedded-bounces+leoli=3Dfreescale.com@ozlabs.org
> [mailto:linuxppc-embedded-bounces+leoli=3Dfreescale.com@ozlabs.org] On
Behalf
> Of jagannathanjay@aim.com
> Sent: Friday, July 07, 2006 5:05 PM
> To: linuxppc-embedded@ozlabs.org
> Subject: SIU_INT_IRQ4 in MPC 8260
>=20
> Hi all
>=20
> I am trying to set up a interrupt handler for SIU_INT_IRQ4.
>=20
> The target I am using is MPC 8260 , emmbedded planet Evaluation board.
>=20
> The OS is Embedded Linux .
>
------------------------------------------------------------------------
-
> ------------
> void my_interrupt_handler(int irq, void *dev_id, struct pt_regs *regs)
> {
>=20
> printk("*********** \n");
>=20
> }
>=20
>=20
> if( request_irq(SIU_INT_IRQ4,my_interrupt_handler,0,0,0) < 0)
> {
> printk("\n unable to register the interrupt handler \n");
> }
>=20
>
------------------------------------------------------------------------
-
> ------------
>=20
> But my_interrupt_handler isn't getting called .
>=20
> Can anyone help me to fix this problem
>=20
> Regards
> Jagan
>=20
>=20
>=20
>=20
>=20
>
________________________________________________________________________
> Check Out the new free AIM(R) Mail -- 2 GB of storage and
> industry-leading spam and email virus protection.
>=20
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: SIU_INT_IRQ4 in MPC 8260
2006-07-07 9:05 SIU_INT_IRQ4 in MPC 8260 jagannathanjay
2006-07-07 9:18 ` Li Yang-r58472
@ 2006-07-07 9:39 ` Laurent Pinchart
1 sibling, 0 replies; 4+ messages in thread
From: Laurent Pinchart @ 2006-07-07 9:39 UTC (permalink / raw)
To: linuxppc-embedded; +Cc: jagannathanjay
> I am trying to set up a interrupt handler for SIU_INT_IRQ4.
>
> The target I am using is MPC 8260 , emmbedded planet Evaluation board.
> The OS is Embedded Linux .
[snip]
> But my_interrupt_handler isn't getting called .
Make sure the CPM IRQ controller is properly configured. Here's the code I
used to configure IRQ5 and IRQ6 in edge sensitive mode. Read the MPC8260
datasheet to check how to set other options. If IRQ4 is multiplexed with
other signals, make sure you configured the MPC8260 to use the external pin
as IRQ4.
static void __init tbox_cp11_init_irq(void)
{
volatile intctl_cpm2_t *ic = &cpm2_immr->im_intctl;
init_irq();
/* Make IRQ5 and IRQ6 edge sensitive */
ic->ic_siexr |= 1 << (14 - (SIU_INT_IRQ5 - SIU_INT_IRQ1));
irq_desc[SIU_INT_IRQ5].status &= ~IRQ_LEVEL;
ic->ic_siexr |= 1 << (14 - (SIU_INT_IRQ6 - SIU_INT_IRQ1));
irq_desc[SIU_INT_IRQ6].status &= ~IRQ_LEVEL;
}
void __init m82xx_board_init(void)
{
init_irq = ppc_md.init_IRQ;
ppc_md.init_IRQ = tbox_cp11_init_irq;
}
Laurent Pinchart
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <8C86FBE3C676D29-1D1C-33C6@FWM-D43.sysops.aol.com>]
* RE: SIU_INT_IRQ4 in MPC 8260
[not found] <8C86FBE3C676D29-1D1C-33C6@FWM-D43.sysops.aol.com>
@ 2006-07-07 9:31 ` Li Yang-r58472
0 siblings, 0 replies; 4+ messages in thread
From: Li Yang-r58472 @ 2006-07-07 9:31 UTC (permalink / raw)
To: jagannathanjay; +Cc: linuxppc-embedded
Interrupt is signal sending from external devices to CPU notifying
something has happened. So if you want your interrupt handler be
called, first you have to make sure the device does send such signals.
Best Regards,
Leo
> -----Original Message-----
> From: jagannathanjay@aim.com [mailto:jagannathanjay@aim.com]
> Sent: Friday, July 07, 2006 5:24 PM
> To: Li Yang-r58472
> Subject: Re: SIU_INT_IRQ4 in MPC 8260
>=20
> No I haven't measured the IRQ4 line
>=20
> I am newbie into MPC8260 .
>=20
> Can u guide me as to what way I should proceed to get my interrupt
> handler working?
>=20
> Regards
> Jagan
>=20
>=20
>=20
> -----Original Message-----
> From: Li Yang-r58472 <LeoLi@freescale.com>
> To: jagannathanjay@aim.com; linuxppc-embedded@ozlabs.org
> Sent: Fri, 7 Jul 2006 17:18:54 +0800
> Subject: RE: SIU_INT_IRQ4 in MPC 8260
>=20
> Are you sure the IRQ4 line is generating irqs? Did you measure the
> line
> using an oscilloscope?
>=20
> Best Regards,
> Leo
> > -----Original Message-----
> > From: linuxppc-embedded-bounces+leoli=3Dfreescale.com@ozlabs.org
> > [mailto:linuxppc-embedded-bounces+leoli=3Dfreescale.com@ozlabs.org] =
On
> Behalf
> > Of jagannathanjay@aim.com
> > Sent: Friday, July 07, 2006 5:05 PM
> > To: linuxppc-embedded@ozlabs.org
> > Subject: SIU_INT_IRQ4 in MPC 8260
> >
> > Hi all
> >
> > I am trying to set up a interrupt handler for SIU_INT_IRQ4.
> >
> > The target I am using is MPC 8260 , emmbedded planet Evaluation
board.
> >
> > The OS is Embedded Linux .
> >
>
------------------------------------------------------------------------
> -
> > ------------
> > void my_interrupt_handler(int irq, void *dev_id, struct pt_regs
*regs)
> > {
> >
> > printk("***********
> ");
> >
> > }
> >
> >
> > if( request_irq(SIU_INT_IRQ4,my_interrupt_handler,0,0,0) < 0)
> > {
> > printk("
> unable to register the interrupt handler
> ");
> > }
> >
> >
>
------------------------------------------------------------------------
> -
> > ------------
> >
> > But my_interrupt_handler isn't getting called .
> >
> > Can anyone help me to fix this problem
> >
> > Regards
> > Jagan
> >
> >
> >
> >
> >
> >
>
________________________________________________________________________
> > Check Out the new free AIM(R) Mail -- 2 GB of storage and
> > industry-leading spam and email virus protection.
> >
> > _______________________________________________
> > Linuxppc-embedded mailing list
> > Linuxppc-embedded@ozlabs.org
> > https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>=20
>=20
>
________________________________________________________________________
> Check Out the new free AIM(R) Mail -- 2 GB of storage and
> industry-leading spam and email virus protection.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-07-07 9:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-07 9:05 SIU_INT_IRQ4 in MPC 8260 jagannathanjay
2006-07-07 9:18 ` Li Yang-r58472
2006-07-07 9:39 ` Laurent Pinchart
[not found] <8C86FBE3C676D29-1D1C-33C6@FWM-D43.sysops.aol.com>
2006-07-07 9:31 ` Li Yang-r58472
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox