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 are cases where drivers need to use a channel
without hooking it up to a peripheral's DMA request
line.  That code snippet prevents such use...

- Dave

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to