mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-01 06:34:04 +02:00
60 lines
1.7 KiB
Diff
60 lines
1.7 KiB
Diff
|
From 163a30f5ffcc4e7af9781bd6695fdc7b27d254f9 Mon Sep 17 00:00:00 2001
|
||
|
From: Simon Kagstrom <simon.kagstrom@gmail.com>
|
||
|
Date: Wed, 13 Aug 2008 11:27:24 +0100
|
||
|
Subject: [PATCH] lis302dl-add-wakeup-defs.patch
|
||
|
|
||
|
Add definitions for the rest of the wakeup defs and also change FFWUSRC1
|
||
|
to FFWUSRC - there are two of these which are identical.
|
||
|
|
||
|
Signed-off-by: Simon Kagstrom <simon.kagstrom@gmail.com>
|
||
|
---
|
||
|
include/linux/lis302dl.h | 32 ++++++++++++++++++++++++--------
|
||
|
1 files changed, 24 insertions(+), 8 deletions(-)
|
||
|
|
||
|
diff --git a/include/linux/lis302dl.h b/include/linux/lis302dl.h
|
||
|
index 4d8ded9..e4a44f5 100644
|
||
|
--- a/include/linux/lis302dl.h
|
||
|
+++ b/include/linux/lis302dl.h
|
||
|
@@ -91,14 +91,30 @@ enum lis302dl_reg_status {
|
||
|
LIS302DL_STATUS_XYZOR = 0x80,
|
||
|
};
|
||
|
|
||
|
-enum lis302dl_reg_ffwusrc1 {
|
||
|
- LIS302DL_FFWUSRC1_XL = 0x01,
|
||
|
- LIS302DL_FFWUSRC1_XH = 0x02,
|
||
|
- LIS302DL_FFWUSRC1_YL = 0x04,
|
||
|
- LIS302DL_FFWUSRC1_YH = 0x08,
|
||
|
- LIS302DL_FFWUSRC1_ZL = 0x10,
|
||
|
- LIS302DL_FFWUSRC1_ZH = 0x20,
|
||
|
- LIS302DL_FFWUSRC1_IA = 0x40,
|
||
|
+/* Wakeup/freefall interrupt defs */
|
||
|
+enum lis302dl_reg_ffwucfg {
|
||
|
+ LIS302DL_FFWUCFG_XLIE = 0x01,
|
||
|
+ LIS302DL_FFWUCFG_XHIE = 0x02,
|
||
|
+ LIS302DL_FFWUCFG_YLIE = 0x04,
|
||
|
+ LIS302DL_FFWUCFG_YHIE = 0x08,
|
||
|
+ LIS302DL_FFWUCFG_ZLIE = 0x10,
|
||
|
+ LIS302DL_FFWUCFG_ZHIE = 0x20,
|
||
|
+ LIS302DL_FFWUCFG_LIR = 0x40,
|
||
|
+ LIS302DL_FFWUCFG_AOI = 0x80,
|
||
|
+};
|
||
|
+
|
||
|
+enum lis302dl_reg_ffwuths {
|
||
|
+ LIS302DL_FFWUTHS_DCRM = 0x80,
|
||
|
+};
|
||
|
+
|
||
|
+enum lis302dl_reg_ffwusrc {
|
||
|
+ LIS302DL_FFWUSRC_XL = 0x01,
|
||
|
+ LIS302DL_FFWUSRC_XH = 0x02,
|
||
|
+ LIS302DL_FFWUSRC_YL = 0x04,
|
||
|
+ LIS302DL_FFWUSRC_YH = 0x08,
|
||
|
+ LIS302DL_FFWUSRC_ZL = 0x10,
|
||
|
+ LIS302DL_FFWUSRC_ZH = 0x20,
|
||
|
+ LIS302DL_FFWUSRC_IA = 0x40,
|
||
|
};
|
||
|
|
||
|
enum lis302dl_reg_cloik_src {
|
||
|
--
|
||
|
1.5.6.5
|
||
|
|