]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: mmio: add register clock support
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 14 Feb 2013 16:39:08 +0000 (17:39 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 14 Feb 2013 16:40:28 +0000 (16:40 +0000)
commit8d214049dedd634216f006636af1b52265095fc5
treee6907b938e9c77c84aed65f7a6f8b2d72f4eb0fd
parent9b7e99e121384d4f09e92e9cf7cb11cc25ca445f
regmap: mmio: add register clock support

Some mmio devices have a dedicated interface clock that needs
to be enabled to access their registers. This patch optionally
enables a clock before accessing registers in the regmap_bus
callbacks.

I added (devm_)regmap_init_mmio_clk variants of the init
functions that have an added clk_id string parameter. This
is passed to clk_get to request the clock from the clk
framework.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap-mmio.c
include/linux/regmap.h