From fc54b9bf158eea9cae647ce2c58f7d9989af173a Mon Sep 17 00:00:00 2001 From: mirko Date: Fri, 12 Dec 2008 11:58:53 +0000 Subject: changed Makefile and profiles, added patches for kernel 2.6.24 (stable-branch of Openmoko) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13613 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../1276-lis302dl-add-wakeup-defs.patch.patch | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 target/linux/s3c24xx/patches-2.6.24/1276-lis302dl-add-wakeup-defs.patch.patch (limited to 'target/linux/s3c24xx/patches-2.6.24/1276-lis302dl-add-wakeup-defs.patch.patch') diff --git a/target/linux/s3c24xx/patches-2.6.24/1276-lis302dl-add-wakeup-defs.patch.patch b/target/linux/s3c24xx/patches-2.6.24/1276-lis302dl-add-wakeup-defs.patch.patch new file mode 100644 index 0000000000..22a1371689 --- /dev/null +++ b/target/linux/s3c24xx/patches-2.6.24/1276-lis302dl-add-wakeup-defs.patch.patch @@ -0,0 +1,59 @@ +From 163a30f5ffcc4e7af9781bd6695fdc7b27d254f9 Mon Sep 17 00:00:00 2001 +From: Simon Kagstrom +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 +--- + 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 + -- cgit v1.2.3