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(*** \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.
SIU_INT_IRQ4 in MPC 8260
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=freescale.com at ozlabs.org [mailto:linuxppc-embedded-bounces+leoli=freescale.com at ozlabs.org] On Behalf Of jagannathanjay at aim.com Sent: Friday, July 07, 2006 5:05 PM To: linuxppc-embedded at 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(*** \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. ___ Linuxppc-embedded mailing list Linuxppc-embedded at ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded
SIU_INT_IRQ4 in MPC 8260
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 at aim.com [mailto:jagannathanjay at aim.com] Sent: Friday, July 07, 2006 5:24 PM To: Li Yang-r58472 Subject: Re: SIU_INT_IRQ4 in MPC 8260 No I haven't measured the IRQ4 line I am newbie into MPC8260 . Can u guide me as to what way I should proceed to get my interrupt handler working? Regards Jagan -Original Message- From: Li Yang-r58472 LeoLi at freescale.com To: jagannathanjay at aim.com; linuxppc-embedded at ozlabs.org Sent: Fri, 7 Jul 2006 17:18:54 +0800 Subject: RE: SIU_INT_IRQ4 in MPC 8260 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=freescale.com at ozlabs.org [mailto:linuxppc-embedded-bounces+leoli=freescale.com at ozlabs.org] On Behalf Of jagannathanjay at aim.com Sent: Friday, July 07, 2006 5:05 PM To: linuxppc-embedded at 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 at ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.
SIU_INT_IRQ4 in MPC 8260
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