Hello,
> But I'm not sure what irq to ask for with request_irq() in my kernel
> module.
> Does anyone know?
At the end of the TS-7400 documentation your question is answered.
"If you choose to use DMA or IRQ support for the GPBUS, you will
likely want to write a kernel driver. Simple userspace applications
can not directly set up interrupt handler functions or translate
the virtual addresses of process data structures to the physical
addresses needed by the DMA controller. When writing a kernel
driver in C, one should be aware of certain details:
*) To set a handler on the GPBUS IRQ, you must request IRQ #33 and
allow IRQ sharing (the UART and SD drivers also generate the
same IRQ). This means calling the request_irq() kernel function
with SA_SHIRQ in the 'flags' parameter.
*) To use DMA, you must manipulate the M2M1 EP9302 DMA channel.
Details
on its programming can be found in the EP9301 CPU User Manual from
Cirrus Logic at http://www.cirrus.com
*) To access various registers in arbitrary physical address space,
use
the __ioremap() function and not the ioremap() kernel function.
ioremap() does not expect physical addresses and will apply an
offset
to your requested address on the EP9302 ARM Linux kernel.
*) If you are unable to write a driver yourself, you may consider
contracting Technologic Systems to write one for you. Often times,
TS engineers can accomodate your requirements for less cost than it
takes to accomplish internally."
Best Regards,
______________________________________________________________
Eddie Dawydiuk, Technologic Systems | voice: (480) 837-5200
16610 East Laser Drive Suite 10 | fax: (480) 837-5300
Fountain Hills, AZ 85268 | web: www.embeddedARM.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|