summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx5/cpu_op-mx51.c
diff options
context:
space:
mode:
authorYong Shen <yong.shen@linaro.org>2010-10-21 13:18:59 (GMT)
committerSascha Hauer <s.hauer@pengutronix.de>2010-10-22 06:24:14 (GMT)
commit64f102b67f77f5054d27e58dbb26ec7ebef20e62 (patch)
tree0075f0e564fbda189c5372106b9a7287b4d536bb /arch/arm/mach-mx5/cpu_op-mx51.c
parent71e2889d9d8f2149f38bbeedfa6d9aefa0875ca6 (diff)
downloadlinux-fsl-qoriq-64f102b67f77f5054d27e58dbb26ec7ebef20e62.tar.xz
cpufreq for freescale mx51
Currently, only two operating points: 160Mhz and 800Mhz. the operating points are tested on babbage 3.0 Signed-off-by: Yong Shen <yong.shen@linaro.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5/cpu_op-mx51.c')
-rw-r--r--arch/arm/mach-mx5/cpu_op-mx51.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/cpu_op-mx51.c b/arch/arm/mach-mx5/cpu_op-mx51.c
new file mode 100644
index 0000000..9d34c3d
--- /dev/null
+++ b/arch/arm/mach-mx5/cpu_op-mx51.c
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2010 Freescale Semiconductor, Inc. All Rights Reserved.
+ */
+
+/*
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+#include <linux/types.h>
+#include <mach/hardware.h>
+#include <linux/kernel.h>
+
+static struct cpu_op mx51_cpu_op[] = {
+ {
+ .cpu_rate = 160000000,},
+ {
+ .cpu_rate = 800000000,},
+};
+
+struct cpu_op *mx51_get_cpu_op(int *op)
+{
+ *op = ARRAY_SIZE(mx51_cpu_op);
+ return mx51_cpu_op;
+}