aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf537/boards/stamp.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/blackfin/mach-bf537/boards/stamp.c')
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c25
1 files changed, 21 insertions, 4 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index d5a4c82df604..fc76ddb69343 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -698,7 +698,7 @@ static const struct ad7879_platform_data bfin_ad7879_ts_info = {
698 698
699#if defined(CONFIG_INPUT_ADXL34X) || defined(CONFIG_INPUT_ADXL34X_MODULE) 699#if defined(CONFIG_INPUT_ADXL34X) || defined(CONFIG_INPUT_ADXL34X_MODULE)
700#include <linux/input.h> 700#include <linux/input.h>
701#include <linux/spi/adxl34x.h> 701#include <linux/input/adxl34x.h>
702static const struct adxl34x_platform_data adxl34x_info = { 702static const struct adxl34x_platform_data adxl34x_info = {
703 .x_axis_offset = 0, 703 .x_axis_offset = 0,
704 .y_axis_offset = 0, 704 .y_axis_offset = 0,
@@ -722,9 +722,7 @@ static const struct adxl34x_platform_data adxl34x_info = {
722 .ev_code_y = ABS_Y, /* EV_REL */ 722 .ev_code_y = ABS_Y, /* EV_REL */
723 .ev_code_z = ABS_Z, /* EV_REL */ 723 .ev_code_z = ABS_Z, /* EV_REL */
724 724
725 .ev_code_tap_x = BTN_TOUCH, /* EV_KEY */ 725 .ev_code_tap = {BTN_TOUCH, BTN_TOUCH, BTN_TOUCH}, /* EV_KEY x,y,z */
726 .ev_code_tap_y = BTN_TOUCH, /* EV_KEY */
727 .ev_code_tap_z = BTN_TOUCH, /* EV_KEY */
728 726
729/* .ev_code_ff = KEY_F,*/ /* EV_KEY */ 727/* .ev_code_ff = KEY_F,*/ /* EV_KEY */
730/* .ev_code_act_inactivity = KEY_A,*/ /* EV_KEY */ 728/* .ev_code_act_inactivity = KEY_A,*/ /* EV_KEY */
@@ -795,6 +793,13 @@ static struct bfin5xx_spi_chip data_flash_chip_info = {
795}; 793};
796#endif 794#endif
797 795
796#if defined(CONFIG_INPUT_ADXL34X_SPI) || defined(CONFIG_INPUT_ADXL34X_SPI_MODULE)
797static struct bfin5xx_spi_chip spi_adxl34x_chip_info = {
798 .enable_dma = 0, /* use dma transfer with this chip*/
799 .bits_per_word = 8,
800};
801#endif
802
798static struct spi_board_info bfin_spi_board_info[] __initdata = { 803static struct spi_board_info bfin_spi_board_info[] __initdata = {
799#if defined(CONFIG_MTD_M25P80) \ 804#if defined(CONFIG_MTD_M25P80) \
800 || defined(CONFIG_MTD_M25P80_MODULE) 805 || defined(CONFIG_MTD_M25P80_MODULE)
@@ -933,6 +938,18 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
933 .mode = SPI_MODE_0, 938 .mode = SPI_MODE_0,
934 }, 939 },
935#endif 940#endif
941#if defined(CONFIG_INPUT_ADXL34X_SPI) || defined(CONFIG_INPUT_ADXL34X_SPI_MODULE)
942 {
943 .modalias = "adxl34x",
944 .platform_data = &adxl34x_info,
945 .irq = IRQ_PF6,
946 .max_speed_hz = 5000000, /* max spi clock (SCK) speed in HZ */
947 .bus_num = 0,
948 .chip_select = 2,
949 .controller_data = &spi_adxl34x_chip_info,
950 .mode = SPI_MODE_3,
951 },
952#endif
936}; 953};
937 954
938#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) 955#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)