how to specify dma_mask and coherent_dma_mask in hwmod

Russell King - ARM Linux linux at arm.linux.org.uk
Wed Jul 4 05:41:40 EDT 2012


On Thu, Jun 07, 2012 at 04:22:17PM +0000, N, Mugunthan V wrote:
> While converting platform device registry to Hwmod for CPSW Ethernet
> driver which is present in AM335X (OMAP2+), I am not finding a way
> to specify dma_mask and coherent_dma_mask.
> Is there a way to specify dma_mask and coherent_dma_mask in hwmod?

Just remember that we're moving stuff to DMA engine, and that means
the sDMA device has DMA masks, but none of the peripherals which make
use of sDMA should have DMA masks set.

The reason for this is because the device responsible for accessing
memory is sDMA, not the peripheral device, and therefore any memory
properties for DMA should come from the sDMA device, not the peripheral
device.



More information about the linux-arm-kernel mailing list