summaryrefslogtreecommitdiff
path: root/include/linux/m4sensorhub/m4sensorhub_irqs.h
diff options
context:
space:
mode:
authorDoug Zobel <dzobel1@motorola.com>2013-11-15 14:29:07 -0600
committerJames Wylder <jwylder@motorola.com>2014-03-05 17:46:52 -0600
commitd2a782003a6047da120a33e6f8ee6fd33bb825d6 (patch)
tree8d20bd4ecda62a06e98993c4108456bc1acb0d0b /include/linux/m4sensorhub/m4sensorhub_irqs.h
parent32fd2d36d2464056d4522a9c02797b7c2b2e884f (diff)
downloadolio-linux-3.10-d2a782003a6047da120a33e6f8ee6fd33bb825d6.tar.xz
olio-linux-3.10-d2a782003a6047da120a33e6f8ee6fd33bb825d6.zip
CW integration and minnow bringup
* create minnow machine type * create Android makefile * add pre-commit syntax check * enable -Werror * Add drivers: CPCAP, TPS65xxx, m4sensorhub, atmxt, lm3535, usb gadget, minnow display, TI 12xx wireless Change-Id: I7962f5e1256715f2452aed5a62a4f2f2383d5046
Diffstat (limited to 'include/linux/m4sensorhub/m4sensorhub_irqs.h')
-rw-r--r--include/linux/m4sensorhub/m4sensorhub_irqs.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/include/linux/m4sensorhub/m4sensorhub_irqs.h b/include/linux/m4sensorhub/m4sensorhub_irqs.h
new file mode 100644
index 00000000000..c41c5c5ed89
--- /dev/null
+++ b/include/linux/m4sensorhub/m4sensorhub_irqs.h
@@ -0,0 +1,78 @@
+/*
+ * Copyright (c) 2012, Motorola, Inc. All Rights Reserved.
+ *
+ * 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 __M4SENSORHUB_IRQS_H__
+#define __M4SENSORHUB_IRQS_H__
+
+#define M4SH_IRQ_INT0_INDEX 0
+#define M4SH_IRQ_INT1_INDEX 8
+
+/* Keep name mapping in m4sensorhub-irq.c 'irq_name' synchronized */
+enum m4sensorhub_irqs {
+ /* 1st supported interrupt */
+ M4SH_IRQ__START,
+
+ /* INT0 0x01: Pressure interrupt */
+ M4SH_IRQ_PRESSURE_DATA_READY = M4SH_IRQ_INT0_INDEX,
+
+ /* INT0 0x02: Temperature interrupt */
+ M4SH_IRQ_TMP_DATA_READY,
+
+ /* INT0 0x04: Gyro interrupt */
+ M4SH_IRQ_GYRO_DATA_READY,
+
+ /* INT0 0x80: Pedometer interrupt */
+ M4SH_IRQ_PEDOMETER_DATA_READY,
+
+ /* INT0 0x10: Compass data interrupt */
+ M4SH_IRQ_COMPASS_DATA_READY,
+
+ /* INT0 0x20: Fusion data interrupt */
+ M4SH_IRQ_FUSION_DATA_READY,
+
+ /* INT0 0x40: Accel data interrupt */
+ M4SH_IRQ_ACCEL_DATA_READY,
+
+ /* INT0 0x80: Gesture interrupt */
+ M4SH_IRQ_GESTURE_DETECTED,
+
+ /* INT1 0x01 : still mode interrupt */
+ M4SH_IRQ_STILL_DETECTED = M4SH_IRQ_INT1_INDEX,
+
+ /* INT1 0x02 : motion detected interrupt */
+ M4SH_IRQ_MOTION_DETECTED,
+
+ /* INT1 0x04 : activity change interrupt */
+ M4SH_IRQ_ACTIVITY_CHANGE,
+
+ /* INT1 0x08 : download command complete interrupt */
+ M4SH_IRQ_DLCMD_RESP_READY,
+
+ /* INT1 0x10 : mic data ready interrupt */
+ M4SH_IRQ_MIC_DATA_READY,
+
+ /* INT1 0x20 : wrist command interrupt */
+ M4SH_IRQ_WRIST_READY,
+
+ /* INT1 0x40 : passive buffer full */
+ M4SH_IRQ_PASSIVE_BUFFER_FULL,
+
+ /* Number of allocated interrupts */
+ M4SH_IRQ__NUM
+};
+#endif /* __M4SENSORHUB_IRQS_H__ */
+