SIU_INT_IRQ4 in MPC 8260

Laurent Pinchart laurent.pinchart at tbox.biz
Fri Jul 7 19:39:57 EST 2006


> 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



More information about the Linuxppc-embedded mailing list