summaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data/dmtimer-omap.h
diff options
context:
space:
mode:
authorJon Hunter <jon-hunter@ti.com>2012-09-28 11:34:49 -0500
committerJon Hunter <jon-hunter@ti.com>2012-11-16 10:35:08 -0600
commit40fc3bb56ed125aa22c0a85c816ae0f923519146 (patch)
treefae27dec800c0bd681a625d723dfa14ad9ee6647 /include/linux/platform_data/dmtimer-omap.h
parent755ae860f71cb37fbd3cc8da007e0d8de33419f0 (diff)
downloadlinux-40fc3bb56ed125aa22c0a85c816ae0f923519146.tar.gz
linux-40fc3bb56ed125aa22c0a85c816ae0f923519146.tar.xz
ARM: OMAP: Add platform data header for DMTIMERs
Move definition of dmtimer platform data structure in to its own header under <linux/platform_data>. Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Diffstat (limited to 'include/linux/platform_data/dmtimer-omap.h')
-rw-r--r--include/linux/platform_data/dmtimer-omap.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/platform_data/dmtimer-omap.h b/include/linux/platform_data/dmtimer-omap.h
new file mode 100644
index 000000000000..a19b78d826e9
--- /dev/null
+++ b/include/linux/platform_data/dmtimer-omap.h
@@ -0,0 +1,31 @@
+/*
+ * DMTIMER platform data for TI OMAP platforms
+ *
+ * Copyright (C) 2012 Texas Instruments
+ * Author: Jon Hunter <jon-hunter@ti.com>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published by
+ * the Free Software Foundation.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __PLATFORM_DATA_DMTIMER_OMAP_H__
+#define __PLATFORM_DATA_DMTIMER_OMAP_H__
+
+struct dmtimer_platform_data {
+ /* set_timer_src - Only used for OMAP1 devices */
+ int (*set_timer_src)(struct platform_device *pdev, int source);
+ u32 timer_capability;
+ u32 timer_errata;
+ int (*get_context_loss_count)(struct device *);
+};
+
+#endif /* __PLATFORM_DATA_DMTIMER_OMAP_H__ */