summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-stm/include/mach/clock-imx23.h
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2010-12-13 11:53:29 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2010-12-14 15:15:06 +0100
commitf45d359d415cf73c20cc90a505e5a5edafcda748 (patch)
treebcabefc1110b10cb4d420f7088b9c769f8098f09 /arch/arm/mach-stm/include/mach/clock-imx23.h
parent814f17253c96fb4acfd7df7277bb2af7cb23dce1 (diff)
downloadbarebox-f45d359d415cf73c20cc90a505e5a5edafcda748.tar.gz
barebox-f45d359d415cf73c20cc90a505e5a5edafcda748.tar.xz
STM378x: Separate i.MX23 clock handling
Separate i.MX23 clock handling to simplify the addition of the upcoming i.MX28. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-stm/include/mach/clock-imx23.h')
-rw-r--r--arch/arm/mach-stm/include/mach/clock-imx23.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/mach-stm/include/mach/clock-imx23.h b/arch/arm/mach-stm/include/mach/clock-imx23.h
new file mode 100644
index 00000000..bb499f25
--- /dev/null
+++ b/arch/arm/mach-stm/include/mach/clock-imx23.h
@@ -0,0 +1,26 @@
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef MACH_CLOCK_IMX23_H
+# define MACH_CLOCK_IMX23_H
+
+unsigned imx_get_mpllclk(void);
+unsigned imx_get_emiclk(void);
+unsigned imx_get_ioclk(void);
+unsigned imx_get_armclk(void);
+unsigned imx_get_hclk(void);
+unsigned imx_get_xclk(void);
+unsigned imx_get_sspclk(unsigned);
+unsigned imx_set_sspclk(unsigned, unsigned, int);
+unsigned imx_set_ioclk(unsigned);
+
+#endif /* MACH_CLOCK_IMX23_H */