Re: [PATCH v3 2/2] ARM: DaVinci: Enable EDMA support for dm646x

2009-06-03 Thread David Brownell
On Monday 01 June 2009, Sudhakar Rajashekhara wrote: +static void __init map_dmach_param(unsigned ctlr) +{ +   int i; +   for (i = 0; i EDMA_MAX_DMACH; i++) +   edma_write_array(ctlr, EDMA_DCHMAP , i , (i 5)); +} Best to do this only for valid DMA event numbers. There

[PATCH v3 2/2] ARM: DaVinci: Enable EDMA support for dm646x

2009-06-01 Thread Sudhakar Rajashekhara
Enables module clock for DM646x EDMA channel controller and transfer controller. Channel mapping logic is introduced in dm646x EDMA. This implies that there is no fixed association for a channel number to a parameter entry number. In other words, using the DMA channel mapping registers (DCHMAPn),