how to specify dma_mask and coherent_dma_mask in hwmod

Paul Walmsley paul at pwsan.com
Thu Jun 28 11:52:54 EDT 2012


Hi

On Thu, 28 Jun 2012, Bedia, Vaibhav wrote:

> On Wed, Jun 27, 2012 at 11:11:32, N, Mugunthan V wrote:
> > > -----Original Message-----
> > > From: N, Mugunthan V
> > > Sent: Thursday, June 07, 2012 9:52 PM
> > > To: 'linux-omap at vger.kernel.org'
> > > Cc: 'linux-arm-kernel at lists.infradead.org'
> > > Subject: how to specify dma_mask and coherent_dma_mask in hwmod
> > > 
> > > 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?
> > 
> > Ping, any one has comment on this?
> 
> Right now there's no way of doing this in hwmod. But is omap_hwmod
> the right place for this? It would help if you could describe why
> the hwmod conversion is causing trouble for you.

dma_mask and coherent_dma_mask can be specified during 
device creation.  See usb_musb_init() in arch/arm/mach-omap2/usb-musb.c 
for an example.

I take it that you're just planning to set both of those to 0xffffffff?


- Paul



More information about the linux-arm-kernel mailing list