aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mmp/clock-pxa910.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2014-04-15 15:20:50 +0200
committerArnd Bergmann <arnd@arndb.de>2015-12-01 21:44:22 +0100
commit990f2f223cb479a15afda9eb8552582aa82e2404 (patch)
tree09e20e274ef06c17c6bd4dfd859bdcdc3d6738cf /arch/arm/mach-mmp/clock-pxa910.c
parentLinux 4.4-rc3 (diff)
downloadlinux-dev-990f2f223cb479a15afda9eb8552582aa82e2404.tar.xz
linux-dev-990f2f223cb479a15afda9eb8552582aa82e2404.zip
clk: mmp: stop using platform headers
The mmp clock drivers currently hardcode the physical addresses for the clock registers. This is generally a bad idea, and it also gets in the way of multiplatform builds, which make the platform header files inaccessible to device drivers. To work around the header file problem, this patch changes the calling convention so the three mmp clock drivers get initialized with the base addresses as arguments from the platform code. It would still be useful to have a larger rework of the clock drivers, with DT integration to let the clocks actually be probed automatically, and the base addresses passed as DT properties. I am unsure if anyone is still interested in the mmp platform, so it is possible that this won't happen. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Mike Turquette <mturquette@linaro.org> Cc: Chao Xie <chao.xie@marvell.com> Cc: Eric Miao <eric.y.miao@gmail.com> Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Diffstat (limited to 'arch/arm/mach-mmp/clock-pxa910.c')
-rw-r--r--arch/arm/mach-mmp/clock-pxa910.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-mmp/clock-pxa910.c b/arch/arm/mach-mmp/clock-pxa910.c
index 379e1df61c70..ef7d3dbc8731 100644
--- a/arch/arm/mach-mmp/clock-pxa910.c
+++ b/arch/arm/mach-mmp/clock-pxa910.c
@@ -4,6 +4,7 @@
#include <linux/list.h>
#include <linux/io.h>
#include <linux/clk.h>
+#include <linux/clk/mmp.h>
#include <mach/addr-map.h>
@@ -61,7 +62,8 @@ static struct clk_lookup pxa910_clkregs[] = {
INIT_CLKREG(&clk_rtc, "sa1100-rtc", NULL),
};
-void __init pxa910_clk_init(void)
+void __init pxa910_clk_init(phys_addr_t mpmu_phys, phys_addr_t apmu_phys,
+ phys_addr_t apbc_phys, phys_addr_t apbcp_phys)
{
clkdev_add_table(ARRAY_AND_SIZE(pxa910_clkregs));
}