www.smartbusinesschoices.com

Leading Business and Technology,
News and information


Part of the Identityscape.com network...

getxfactor.com jmoodmusic.com smartbusinesschoices.com mintdepot.com lowfaresalways.com evangelicalview.com shoppingpodder.com soproudlywehail.com webnews.ws currenthumor.com

 

 

problem in configuring the ipic interrupt
   Smart Linux Business Choices! - the Best of UseNet Postings! Forum Index -> Linux Power PC  
View previous topic :: View next topic  
Author Message
alagusakthi@gmail.com
Guest






PostPosted: Tue Aug 26, 2008 4:36 am    Post subject: problem in configuring the ipic interrupt Reply with quote

hi ,
i am using mpc8315 power pc... i need to configure the externel
interrupt using ipic... i m using linux 2.6.23 version...
below is my interrupt initialization code which i writtern inside the
arch/powerpc/platform/83xx/mpc83xx.c

static int __init Interrupt_Init(void)
{
int irq;
struct device_node *np;
np = of_find_node_by_type(NULL, "ipic");

irq_desc[IPIC_IRQ_EXT5].status = IRQ_TYPE_EDGE_FALLING;
irq_desc[IPIC_IRQ_EXT5].handle_irq=&handle_edge_irq;

printk("External Interrupt Initialization\n");
if (request_irq(IPIC_IRQ_EXT5, ExtIntHandler,IRQF_DISABLED,
"External Interrupt Handler5", NULL))
{
printk("Installation of External Interrupt Handler
failed for Interrupt 1 \n");
}
return 0;
}
late_initcall(Interrupt_Init);


when i use the above code the interrupt get register in OS...i
conformed this by executing "cat /proc/interrupts" in my board. by
executing the command i can see "External Interrupt Handler5" in "/
proc/interrupt " File.

i configured the interrupt for Edge Trigger.... when i interrupt
occurs or when i give the low to corresponding pin, the externel
interrupt is not occuring...

kindly give ur valuable idea regarding this...and if my code is wrong
please provide me the alternate way to conffigure the externel
interrupt...
Back to top
Display posts from previous:   
   Smart Linux Business Choices! - the Best of UseNet Postings! Forum Index -> Linux Power PC  
Page 1 of 1
All times are GMT

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum