diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2009-10-29 09:48:10 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-12-15 00:16:20 -0500 |
commit | 5db4036b46ee0d0334a1ac34c1e2375746ba5522 (patch) | |
tree | caf229fc578610a5e8cab650c59735c7d22c1cf6 /arch/blackfin/mach-bf548/boards/ezkit.c | |
parent | 57af8edf3f0346aa0f942f245acbfe122bb75707 (diff) |
Blackfin: bf537-stamp: add ADXL346 orientation sensing support
The ADXL34x driver was updated to include orientation sensing, so have the
bf537-stamp use it by default.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf548/boards/ezkit.c')
-rw-r--r-- | arch/blackfin/mach-bf548/boards/ezkit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c index 93595cf35e67..fa44ea2a5201 100644 --- a/arch/blackfin/mach-bf548/boards/ezkit.c +++ b/arch/blackfin/mach-bf548/boards/ezkit.c | |||
@@ -216,6 +216,11 @@ static const struct adxl34x_platform_data adxl34x_info = { | |||
216 | /* .ev_code_act_inactivity = KEY_A,*/ /* EV_KEY */ | 216 | /* .ev_code_act_inactivity = KEY_A,*/ /* EV_KEY */ |
217 | .power_mode = ADXL_AUTO_SLEEP | ADXL_LINK, | 217 | .power_mode = ADXL_AUTO_SLEEP | ADXL_LINK, |
218 | .fifo_mode = ADXL_FIFO_STREAM, | 218 | .fifo_mode = ADXL_FIFO_STREAM, |
219 | .orientation_enable = ADXL_EN_ORIENTATION_3D, | ||
220 | .deadzone_angle = ADXL_DEADZONE_ANGLE_10p8, | ||
221 | .divisor_length = ADXL_LP_FILTER_DIVISOR_16, | ||
222 | /* EV_KEY {+Z, +Y, +X, -X, -Y, -Z} */ | ||
223 | .ev_codes_orient_3d = {BTN_Z, BTN_Y, BTN_X, BTN_A, BTN_B, BTN_C}, | ||
219 | }; | 224 | }; |
220 | #endif | 225 | #endif |
221 | 226 | ||