summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mxs/soc-imx23.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-04-16 12:56:27 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-06-20 08:49:55 +0200
commit86e80e58043394e317595d8d0fb7e6aa2e9e1e94 (patch)
treec6f9fa5630a45c396045c1faf317a7b82548f550 /arch/arm/mach-mxs/soc-imx23.c
parent35739eef19f9cf37f7400c1781a95fd867820825 (diff)
downloadbarebox-86e80e58043394e317595d8d0fb7e6aa2e9e1e94.tar.gz
barebox-86e80e58043394e317595d8d0fb7e6aa2e9e1e94.tar.xz
ARM: MXS: add clk drivers
This adds support for the i.MX23 and i.MX28 clock modules. This mostly is a copy from the kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mxs/soc-imx23.c')
-rw-r--r--arch/arm/mach-mxs/soc-imx23.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/soc-imx23.c b/arch/arm/mach-mxs/soc-imx23.c
index 6819b3cf2e..4e450643a2 100644
--- a/arch/arm/mach-mxs/soc-imx23.c
+++ b/arch/arm/mach-mxs/soc-imx23.c
@@ -35,3 +35,12 @@ void __noreturn reset_cpu(unsigned long addr)
/*NOTREACHED*/
}
EXPORT_SYMBOL(reset_cpu);
+
+static int imx23_devices_init(void)
+{
+
+ add_generic_device("imx23-clkctrl", 0, NULL, IMX_CCM_BASE, 0x100, IORESOURCE_MEM, NULL);
+
+ return 0;
+}
+postcore_initcall(imx23_devices_init);