aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2009-12-08 06:34:07 -0500
committerMike Frysinger <vapier@gentoo.org>2010-03-09 00:30:53 -0500
commit6ba255f4a8a0785ea8a2b052837a7b91eeac1bb4 (patch)
treecdd60989b726966a1fc68f8181589240d46f27ec /arch/blackfin
parent848c51ccee5c4d51b1dc1a029508cfbb73f8c260 (diff)
Blackfin: bf537-stamp: add example ADXL346 orientation resources
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index 772b7bab0a9b..9eaf5b05c11e 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -734,11 +734,11 @@ static const struct ad7877_platform_data bfin_ad7877_ts_info = {
734 .y_plate_ohms = 486, 734 .y_plate_ohms = 486,
735 .pressure_max = 1000, 735 .pressure_max = 1000,
736 .pressure_min = 0, 736 .pressure_min = 0,
737 .stopacq_polarity = 1, 737 .stopacq_polarity = 1,
738 .first_conversion_delay = 3, 738 .first_conversion_delay = 3,
739 .acquisition_time = 1, 739 .acquisition_time = 1,
740 .averaging = 1, 740 .averaging = 1,
741 .pen_down_acc_interval = 1, 741 .pen_down_acc_interval = 1,
742}; 742};
743#endif 743#endif
744 744
@@ -749,11 +749,11 @@ static const struct ad7879_platform_data bfin_ad7879_ts_info = {
749 .x_plate_ohms = 620, /* 620 Ohm from the touch datasheet */ 749 .x_plate_ohms = 620, /* 620 Ohm from the touch datasheet */
750 .pressure_max = 10000, 750 .pressure_max = 10000,
751 .pressure_min = 0, 751 .pressure_min = 0,
752 .first_conversion_delay = 3, /* wait 512us before do a first conversion */ 752 .first_conversion_delay = 3, /* wait 512us before do a first conversion */
753 .acquisition_time = 1, /* 4us acquisition time per sample */ 753 .acquisition_time = 1, /* 4us acquisition time per sample */
754 .median = 2, /* do 8 measurements */ 754 .median = 2, /* do 8 measurements */
755 .averaging = 1, /* take the average of 4 middle samples */ 755 .averaging = 1, /* take the average of 4 middle samples */
756 .pen_down_acc_interval = 255, /* 9.4 ms */ 756 .pen_down_acc_interval = 255, /* 9.4 ms */
757 .gpio_export = 1, /* Export GPIO to gpiolib */ 757 .gpio_export = 1, /* Export GPIO to gpiolib */
758 .gpio_base = -1, /* Dynamic allocation */ 758 .gpio_base = -1, /* Dynamic allocation */
759}; 759};
@@ -790,6 +790,11 @@ static const struct adxl34x_platform_data adxl34x_info = {
790/* .ev_code_act_inactivity = KEY_A,*/ /* EV_KEY */ 790/* .ev_code_act_inactivity = KEY_A,*/ /* EV_KEY */
791 .power_mode = ADXL_AUTO_SLEEP | ADXL_LINK, 791 .power_mode = ADXL_AUTO_SLEEP | ADXL_LINK,
792 .fifo_mode = ADXL_FIFO_STREAM, 792 .fifo_mode = ADXL_FIFO_STREAM,
793 .orientation_enable = ADXL_EN_ORIENTATION_3D,
794 .deadzone_angle = ADXL_DEADZONE_ANGLE_10p8,
795 .divisor_length = ADXL_LP_FILTER_DIVISOR_16,
796 /* EV_KEY {+Z, +Y, +X, -X, -Y, -Z} */
797 .ev_codes_orient_3d = {BTN_Z, BTN_Y, BTN_X, BTN_A, BTN_B, BTN_C},
793}; 798};
794#endif 799#endif
795 800