Messages in this thread | | | Date | Wed, 26 Sep 2012 16:04:29 +0100 | From | Mark Brown <> | Subject | Re: [PATCH 1/8] sta2x11-mfd : add apb-soc regs driver and factor out common code |
| |
On Wed, Sep 26, 2012 at 04:56:15PM +0200, Davide Ciminaghi wrote: > On Tue, Sep 25, 2012 at 08:20:48PM +0100, Mark Brown wrote:
> > Glancing at the diff here this looks a lot like regmap-mmio... not sure > > if it is or not, though.
> that would be ideal, but I also need to deal with the common clock framework, > which doesn't support regmap: clk_register_divider(), clk_register_mux(), > clk_register_gate(), all take a void __iomem * to access clock control > registers, so as far as I can understand we can't use regmap, unless of > course we convert the common clock framework to regmap.
The two should be able to coexist happily, regmap-mmio requires the caller to do the actual mapping and so long as you don't cache the relevant registers the two shouldn't interfere with each other.
Alternatively, and more generally usefully, we could implement regmap based common clock helpers.
| |