]> git.baikalelectronics.ru Git - kernel.git/commit
clk: at91: make use of syscon to share PMC registers in several drivers
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 5 Sep 2014 07:54:13 +0000 (09:54 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 17 Feb 2016 16:52:58 +0000 (17:52 +0100)
commit80952e690f3116b5d3199e7509b0ea558d2cb9a7
tree425f5509a766c4025821457a5c10cb258fc343f7
parentd7e15052ecc9ac4f938d1d7432c1d120a2711a7e
clk: at91: make use of syscon to share PMC registers in several drivers

The PMC block is providing several functionnalities:
 - system clk management
 - cpuidle
 - platform suspend

Replace the void __iomem *regs field by a regmap (retrieved using syscon)
so that we can later share the regmap across several drivers without
exporting a new specific API or a global void __iomem * variable.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
arch/arm/mach-at91/Kconfig
drivers/clk/at91/pmc.c
drivers/clk/at91/pmc.h