OSDN Git Service

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)
commit878ec67b3ac528a2b6d44055f049cdbb9cfda30c
treee6907b938e9c77c84aed65f7a6f8b2d72f4eb0fd
parent836dc9e3fbbab0c30aa6e664417225f5c1fb1c39
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