aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf537
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-10-12 11:56:58 -0400
committerMike Frysinger <vapier@gentoo.org>2009-12-15 00:16:25 -0500
commit5b7c57751e6dcf3a3063b8e94977972d4cb646c6 (patch)
treeb422979614eaaa8398eef77a6771e47bfd8e7194 /arch/blackfin/mach-bf537
parent1d23dc89f29b8ceea87bb6656172c13e4c9549de (diff)
Blackfin: bf537-stamp: kill AD714x board-specific Kconfigs
Include the AD714x SPI/I2C resources based on what is possible. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf537')
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index 03fd835dec91..f911d2f403e7 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -515,7 +515,7 @@ static struct bfin5xx_spi_chip ad1938_spi_chip_info = {
515}; 515};
516#endif 516#endif
517 517
518#if defined(CONFIG_INPUT_EVAL_AD7147EBZ) 518#if defined(CONFIG_INPUT_AD714X_SPI) || defined(CONFIG_INPUT_AD714X_SPI_MODULE)
519#include <linux/input.h> 519#include <linux/input.h>
520#include <linux/input/ad714x.h> 520#include <linux/input/ad714x.h>
521static struct bfin5xx_spi_chip ad7147_spi_chip_info = { 521static struct bfin5xx_spi_chip ad7147_spi_chip_info = {
@@ -523,7 +523,7 @@ static struct bfin5xx_spi_chip ad7147_spi_chip_info = {
523 .bits_per_word = 16, 523 .bits_per_word = 16,
524}; 524};
525 525
526static struct ad714x_slider_plat slider_plat[] = { 526static struct ad714x_slider_plat ad7147_spi_slider_plat[] = {
527 { 527 {
528 .start_stage = 0, 528 .start_stage = 0,
529 .end_stage = 7, 529 .end_stage = 7,
@@ -531,7 +531,7 @@ static struct ad714x_slider_plat slider_plat[] = {
531 }, 531 },
532}; 532};
533 533
534static struct ad714x_button_plat button_plat[] = { 534static struct ad714x_button_plat ad7147_spi_button_plat[] = {
535 { 535 {
536 .keycode = BTN_FORWARD, 536 .keycode = BTN_FORWARD,
537 .l_mask = 0, 537 .l_mask = 0,
@@ -558,11 +558,11 @@ static struct ad714x_button_plat button_plat[] = {
558 .h_mask = 0x400, 558 .h_mask = 0x400,
559 }, 559 },
560}; 560};
561static struct ad714x_platform_data ad7147_platfrom_data = { 561static struct ad714x_platform_data ad7147_spi_platform_data = {
562 .slider_num = 1, 562 .slider_num = 1,
563 .button_num = 5, 563 .button_num = 5,
564 .slider = slider_plat, 564 .slider = ad7147_spi_slider_plat,
565 .button = button_plat, 565 .button = ad7147_spi_button_plat,
566 .stage_cfg_reg = { 566 .stage_cfg_reg = {
567 {0xFBFF, 0x1FFF, 0, 0x2626, 1600, 1600, 1600, 1600}, 567 {0xFBFF, 0x1FFF, 0, 0x2626, 1600, 1600, 1600, 1600},
568 {0xEFFF, 0x1FFF, 0, 0x2626, 1650, 1650, 1650, 1650}, 568 {0xEFFF, 0x1FFF, 0, 0x2626, 1650, 1650, 1650, 1650},
@@ -581,10 +581,10 @@ static struct ad714x_platform_data ad7147_platfrom_data = {
581}; 581};
582#endif 582#endif
583 583
584#if defined(CONFIG_INPUT_EVAL_AD7142EB) 584#if defined(CONFIG_INPUT_AD714X_I2C) || defined(CONFIG_INPUT_AD714X_I2C_MODULE)
585#include <linux/input.h> 585#include <linux/input.h>
586#include <linux/input/ad714x.h> 586#include <linux/input/ad714x.h>
587static struct ad714x_button_plat button_plat[] = { 587static struct ad714x_button_plat ad7142_i2c_button_plat[] = {
588 { 588 {
589 .keycode = BTN_1, 589 .keycode = BTN_1,
590 .l_mask = 0, 590 .l_mask = 0,
@@ -606,9 +606,9 @@ static struct ad714x_button_plat button_plat[] = {
606 .h_mask = 0x8, 606 .h_mask = 0x8,
607 }, 607 },
608}; 608};
609static struct ad714x_platform_data ad7142_platfrom_data = { 609static struct ad714x_platform_data ad7142_i2c_platform_data = {
610 .button_num = 4, 610 .button_num = 4,
611 .button = button_plat, 611 .button = ad7142_i2c_button_plat,
612 .stage_cfg_reg = { 612 .stage_cfg_reg = {
613 /* fixme: figure out right setting for all comoponent according 613 /* fixme: figure out right setting for all comoponent according
614 * to hardware feature of EVAL-AD7142EB board */ 614 * to hardware feature of EVAL-AD7142EB board */
@@ -861,7 +861,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
861 }, 861 },
862#endif 862#endif
863 863
864#if defined(CONFIG_INPUT_EVAL_AD7147EBZ) 864#if defined(CONFIG_INPUT_AD714X_SPI) || defined(CONFIG_INPUT_AD714X_SPI_MODULE)
865 { 865 {
866 .modalias = "ad714x_captouch", 866 .modalias = "ad714x_captouch",
867 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */ 867 .max_speed_hz = 1000000, /* max spi clock (SCK) speed in HZ */
@@ -869,7 +869,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
869 .bus_num = 0, 869 .bus_num = 0,
870 .chip_select = 5, 870 .chip_select = 5,
871 .mode = SPI_MODE_3, 871 .mode = SPI_MODE_3,
872 .platform_data = &ad7147_platfrom_data, 872 .platform_data = &ad7147_spi_platform_data,
873 .controller_data = &ad7147_spi_chip_info, 873 .controller_data = &ad7147_spi_chip_info,
874 }, 874 },
875#endif 875#endif
@@ -1402,11 +1402,11 @@ static struct adp5588_gpio_platform_data adp5588_gpio_data = {
1402#endif 1402#endif
1403 1403
1404static struct i2c_board_info __initdata bfin_i2c_board_info[] = { 1404static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
1405#if defined(CONFIG_INPUT_EVAL_AD7142EB) 1405#if defined(CONFIG_INPUT_AD714X_I2C) || defined(CONFIG_INPUT_AD714X_I2C_MODULE)
1406 { 1406 {
1407 I2C_BOARD_INFO("ad7142_captouch", 0x2C), 1407 I2C_BOARD_INFO("ad7142_captouch", 0x2C),
1408 .irq = IRQ_PG5, 1408 .irq = IRQ_PG5,
1409 .platform_data = (void *)&ad7142_platfrom_data, 1409 .platform_data = (void *)&ad7142_i2c_platform_data,
1410 }, 1410 },
1411#endif 1411#endif
1412#if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE) 1412#if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_BFIN_TWI_LCD_MODULE)