Thread (6 messages) flat view 6 messages, 2 authors, 2001-08-20

Re: Using IDMA1 ( or IDMA2 ) on 860

From: Dan Malek <hidden>
Date: 2001-08-19 20:41:38

John Francis wrote:
May be I should have been more specific, yes I have
setup the PC15 pin to have correct direction.
Well, your description indicated you were expecting the
transition of DREQ to generate an interrupt.  This isn't
the case.  Have you connected a logic analyzer to the bus
and determined the DMA is working correctly?
/* version2 of GetChipAddress this WORKS why? */
Because you can't directly access physical bus addresses from
the kernel.  They have to be mapped to some virtual address.
The IMMR is mapped to a well known address that can generally
be used anywhere in the kernel.  Anything else must be mapped,
as your example shows.  Just make sure you do this _once_,
don't keep calling ioremap() over and over or you will exhaust
the VM space and get a different address every time.


	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help