summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorXiaohui Tao <xtao@nvidia.com>2013-05-30 10:55:41 -0700
committerMandar Padmawar <mpadmawar@nvidia.com>2013-06-17 05:48:15 -0700
commite93bff55cb4d3abe959b7104d6e0eb897888f9b7 (patch)
tree3a1ca8b9147a8704fd33f491e6329f29933cc3fa /include/linux
parent68e9930f230b8b2bbbf1d931ad3fbe89d80135c5 (diff)
input: misc: Add orientation vector in header file
Add orientation vector in header file in order for better management Change-Id: Ic128afc49f169f534356fdec2e1381ccd09acc6b Signed-off-by: Xiaohui Tao <xtao@nvidia.com> Reviewed-on: http://git-master/r/237427 Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com> Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mpu.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/mpu.h b/include/linux/mpu.h
index 4f30ea39793a..1f78833c30f5 100644
--- a/include/linux/mpu.h
+++ b/include/linux/mpu.h
@@ -50,6 +50,20 @@
**********************************************************************/
#define DEBUG_SYSFS_INTERFACE 0
+/* Mount maxtices for mount orientation.
+ * MTMAT_XXX_CCW_YYY
+ * XXX : mount position. TOP for top and BOT for bottom.
+ * YYY : couter-clockwise rotation angle in degree.
+ */
+#define MTMAT_TOP_CCW_0 { 1, 0, 0, 0, 1, 0, 0, 0, 1 }
+#define MTMAT_TOP_CCW_90 { 0, -1, 0, 1, 0, 0, 0, 0, 1 }
+#define MTMAT_TOP_CCW_180 { -1, 0, 0, 0, -1, 0, 0, 0, 1 }
+#define MTMAT_TOP_CCW_270 { 0, 1, 0, -1, 0, 0, 0, 0, 1 }
+#define MTMAT_BOT_CCW_0 { -1, 0, 0, 0, 1, 0, 0, 0, -1 }
+#define MTMAT_BOT_CCW_90 { 0, -1, 0, -1, 0, 0, 0, 0, -1 }
+#define MTMAT_BOT_CCW_180 { 1, 0, 0, 0, -1, 0, 0, 0, -1 }
+#define MTMAT_BOT_CCW_270 { 0, 1, 0, 1, 0, 0, 0, 0, -1 }
+
/*********************************************************************/
/* Structure and function prototypes */
/*********************************************************************/