1 From 163a30f5ffcc4e7af9781bd6695fdc7b27d254f9 Mon Sep 17 00:00:00 2001
2 From: Simon Kagstrom <simon.kagstrom@gmail.com>
3 Date: Wed, 13 Aug 2008 11:27:24 +0100
4 Subject: [PATCH] lis302dl-add-wakeup-defs.patch
6 Add definitions for the rest of the wakeup defs and also change FFWUSRC1
7 to FFWUSRC - there are two of these which are identical.
9 Signed-off-by: Simon Kagstrom <simon.kagstrom@gmail.com>
11 include/linux/lis302dl.h | 32 ++++++++++++++++++++++++--------
12 1 files changed, 24 insertions(+), 8 deletions(-)
14 diff --git a/include/linux/lis302dl.h b/include/linux/lis302dl.h
15 index 4d8ded9..e4a44f5 100644
16 --- a/include/linux/lis302dl.h
17 +++ b/include/linux/lis302dl.h
18 @@ -91,14 +91,30 @@ enum lis302dl_reg_status {
19 LIS302DL_STATUS_XYZOR = 0x80,
22 -enum lis302dl_reg_ffwusrc1 {
23 - LIS302DL_FFWUSRC1_XL = 0x01,
24 - LIS302DL_FFWUSRC1_XH = 0x02,
25 - LIS302DL_FFWUSRC1_YL = 0x04,
26 - LIS302DL_FFWUSRC1_YH = 0x08,
27 - LIS302DL_FFWUSRC1_ZL = 0x10,
28 - LIS302DL_FFWUSRC1_ZH = 0x20,
29 - LIS302DL_FFWUSRC1_IA = 0x40,
30 +/* Wakeup/freefall interrupt defs */
31 +enum lis302dl_reg_ffwucfg {
32 + LIS302DL_FFWUCFG_XLIE = 0x01,
33 + LIS302DL_FFWUCFG_XHIE = 0x02,
34 + LIS302DL_FFWUCFG_YLIE = 0x04,
35 + LIS302DL_FFWUCFG_YHIE = 0x08,
36 + LIS302DL_FFWUCFG_ZLIE = 0x10,
37 + LIS302DL_FFWUCFG_ZHIE = 0x20,
38 + LIS302DL_FFWUCFG_LIR = 0x40,
39 + LIS302DL_FFWUCFG_AOI = 0x80,
42 +enum lis302dl_reg_ffwuths {
43 + LIS302DL_FFWUTHS_DCRM = 0x80,
46 +enum lis302dl_reg_ffwusrc {
47 + LIS302DL_FFWUSRC_XL = 0x01,
48 + LIS302DL_FFWUSRC_XH = 0x02,
49 + LIS302DL_FFWUSRC_YL = 0x04,
50 + LIS302DL_FFWUSRC_YH = 0x08,
51 + LIS302DL_FFWUSRC_ZL = 0x10,
52 + LIS302DL_FFWUSRC_ZH = 0x20,
53 + LIS302DL_FFWUSRC_IA = 0x40,
56 enum lis302dl_reg_cloik_src {