aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/include/mach/cpufreq.h
diff options
context:
space:
mode:
authorSekhar Nori <nsekhar@ti.com>2009-09-22 21:14:00 +0530
committerKevin Hilman <khilman@deeprootsystems.com>2009-11-25 10:21:28 -0800
commit6601b8030de3e9c29930684eeac15302a59f991a (patch)
treeef425f3cad13bf1ab86060c5fa6e128345b9686d /arch/arm/mach-davinci/include/mach/cpufreq.h
parentdavinci: da830 EVM: remove #include <mach/gpio.h> (diff)
downloadlinux-dev-6601b8030de3e9c29930684eeac15302a59f991a.tar.xz
linux-dev-6601b8030de3e9c29930684eeac15302a59f991a.zip
davinci: add generic CPUFreq driver for DaVinci
Adds a basic CPUFreq driver for DaVinci devices registering with the kernel CPUFreq infrastructure. Support is added for both frequency and voltage regulation. Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/include/mach/cpufreq.h')
-rw-r--r--arch/arm/mach-davinci/include/mach/cpufreq.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/cpufreq.h b/arch/arm/mach-davinci/include/mach/cpufreq.h
new file mode 100644
index 000000000000..442bdea44632
--- /dev/null
+++ b/arch/arm/mach-davinci/include/mach/cpufreq.h
@@ -0,0 +1,25 @@
+/*
+ * TI DaVinci CPUFreq platform support.
+ *
+ * Copyright (C) 2009 Texas Instruments, Inc. http://www.ti.com/
+ *
+ * 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 version 2.
+ *
+ * This program is distributed "as is" WITHOUT ANY WARRANTY of any
+ * kind, whether express or implied; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+#ifndef _MACH_DAVINCI_CPUFREQ_H
+#define _MACH_DAVINCI_CPUFREQ_H
+
+#include <linux/cpufreq.h>
+
+struct davinci_cpufreq_config {
+ struct cpufreq_frequency_table *freq_table;
+ int (*set_voltage) (unsigned int index);
+};
+
+#endif