[PATCH v2 1/2] pinctrl: pinctrl-imx: add support for set bits for general purpose registers

Dong Aisheng b29396 at freescale.com
Mon Jul 16 23:04:12 EDT 2012

On Mon, Jul 16, 2012 at 09:40:17PM +0800, Arnd Bergmann wrote:
> On Monday 16 July 2012, Richard Zhao wrote:
> > > If you really wants a "funnel driver" doing all these diverse things,
> > > I'd put it in drivers/mfd.
> >
> > It's like driver drivers/mfd/anatop-mfd.c. They both store misc bits.
> > We may need a generic driver to simply provide register accessor.
> We already have the "regmap" framework that deals with sets of registers
> on spi, i2c or memory mapped buses. One thing I've thought about
Thanks for the hints.
Will look into it.

> before is to create some kind of very simple "system controller"
> framework based on regmap that lets you register a single global
> "struct regmap" pointer from an SoC specific driver, and have drivers
> call a function into that framework to get a reference to that
> regmap.
That would be a good idea to make people easy use.

Dong Aisheng

More information about the linux-arm-kernel mailing list