linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* mpc5200 arch=powerpc kernel=2.6.24: how do I request external IRQ0-3?
@ 2008-04-25 16:14 Mike Timmons
  2008-04-27  1:58 ` mtwallet
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Timmons @ 2008-04-25 16:14 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1117 bytes --]

I am confused on a very simple subject: requesting an external IRQ from
a custom driver I'm writing  for a lite5200b-based board running kernel
2.6.24, arch=powerpc. 

 

With the old arch=ppc I saw reference to MPC52xx_IRQ3 and such. I don't
see reference to specific IRQs under the powerpc arch. I am starting to
better understand the dts scheme for peripheral interrupts, but I am
hung-up on the seemingly simple task of requesting an external IRQ and
registering a callback from my driver:

 

request_irq(  virtual_irq_number_for_IRQ3_that_I_don't_know_right_now,
&my_callback, flags, name, dev)

 

For this to work do I need to create a child node in the dts that
specifies interrupts = <1 3 2> for IRQ3?  Must the IRQ I'm requesting be
associated with the dev argument to request_irq via the dts?

 

I just think I'm missing something very obvious as regards using
IRQ[0-3] on the mpc52xx. The DTS makes sens to me for peripheral
interrupts getting associated with their respective peripherals, but
when I want any old driver to use IRQ0-3 How do I request it?

 

Thanks.


[-- Attachment #2: Type: text/html, Size: 3511 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-27  5:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-25 16:14 mpc5200 arch=powerpc kernel=2.6.24: how do I request external IRQ0-3? Mike Timmons
2008-04-27  1:58 ` mtwallet
2008-04-27  5:01   ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).