Could someone point me to working sample code to DMA from memory
to an GPMC attached FPGA (NOR - like) on an 8148 processor ?
(Angstrom distribution)
I tried to modify the edma_test that comes with the EZSDK with no success
I can successfully use ioremap_nocache to then read / write to the FPGA but I have not yet figured out how to do it with DMA (see my working ioremap code below)
.. I cannot get the right destination address set-up in the edma_test example
help from the experts on this forum would be greatly appreciated!
thanks!
Bernard
// Memory region for the FPGA
#define MY_ADDR 0x15000000 // mem addr to access the FPGA
#define MY_SZ 65536 // size of the memory region
io_base = ioremap_nocache( MY_ADDR , MY_SZ ) ;
if (!io_base) {
printk( " %s unable to map iobase \n", __func__ );
return -ENODEV;
}
....
val1 = readw( io_base + offset1) ;