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

Arnd Bergmann arnd at arndb.de
Mon Jul 16 09:40:17 EDT 2012


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
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.

	Arnd



More information about the linux-arm-kernel mailing list