Sharing resources between several drivers.
Bedia, Vaibhav
vaibhav.bedia at ti.com
Fri Jul 27 05:03:33 EDT 2012
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.
> (i.MX21, i.MX1...) don't support device tree yet, so we need to
> provide backwards compatibility.
>
> What is the right way to request the same memory region from two
> different drivers? Moreover, how can we guarantee that there won't be
> any conflicts when accessing these shared resources?
>
For a few registers this might be an overkill but MFD comes to mind.
Regards,
Vaibhav B.
More information about the linux-arm-kernel
mailing list