Sharing resources between several drivers.

Bedia, Vaibhav vaibhav.bedia at ti.com
Mon Jul 30 08:00:45 EDT 2012


On Sat, Jul 28, 2012 at 19:37:54, Shawn Guo wrote:
> On Fri, Jul 27, 2012 at 09:03:33AM +0000, Bedia, Vaibhav wrote:
> > On Fri, Jul 27, 2012 at 13:29:21, javier Martin wrote:
> > > Hi,
> > > we are trying to support pinctrl for i.MX21, i.MX1 and i.MX27.
> > > 
> > > In these chips, gpio and pinctrl use the same HW memory area
> > > registers. This means that we have to request the same memory area
> > > from two different drivers (gpio and pinctrl) but we don't know how to
> > > do that.
> > > 
> > > A similar example available is mxs, but it only works with device
> > > tree, so this problem is avoided.  However, some of these chips
> > 
> > I am curious as to how device tree solves the access issues for
> > a shared resource.
> > 
> Although pinctrl and gpio share the same IO region, they are accessing
> different registers, so there should be no access issues.
> 

Ok that makes sense. Thanks for clarifying.

Regards,
Vaibhav B.



More information about the linux-arm-kernel mailing list