SIU_INT_IRQ4 in MPC 8260

3 messages, 3 authors, 2006-07-07 · open the first message on its own page

SIU_INT_IRQ4 in MPC 8260

From: <hidden>
Date: 2006-07-07 09:05:32

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.

RE: SIU_INT_IRQ4 in MPC 8260

From: Li Yang-r58472 <hidden>
Date: 2006-07-07 09:16:34

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

Re: SIU_INT_IRQ4 in MPC 8260

From: Laurent Pinchart <hidden>
Date: 2006-07-07 09:38:21

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help