1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
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
|