diff options
Diffstat (limited to 'arch/arm/mach-pxa/imote2.c')
-rw-r--r-- | arch/arm/mach-pxa/imote2.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/arch/arm/mach-pxa/imote2.c b/arch/arm/mach-pxa/imote2.c index 821e65a4097e..3ef98d43d303 100644 --- a/arch/arm/mach-pxa/imote2.c +++ b/arch/arm/mach-pxa/imote2.c | |||
@@ -456,25 +456,12 @@ static struct pxa2xx_spi_master pxa_ssp_master_2_info = { | |||
456 | .num_chipselect = 1, | 456 | .num_chipselect = 1, |
457 | }; | 457 | }; |
458 | 458 | ||
459 | /* Patch posted by Eric Miao <eric.miao@marvell.com> will remove | ||
460 | * the need for these functions. | ||
461 | */ | ||
462 | static void spi1control(u32 command) | ||
463 | { | ||
464 | gpio_set_value(24, command & PXA2XX_CS_ASSERT ? 0 : 1); | ||
465 | }; | ||
466 | |||
467 | static void spi3control(u32 command) | ||
468 | { | ||
469 | gpio_set_value(39, command & PXA2XX_CS_ASSERT ? 0 : 1); | ||
470 | }; | ||
471 | |||
472 | static struct pxa2xx_spi_chip staccel_chip_info = { | 459 | static struct pxa2xx_spi_chip staccel_chip_info = { |
473 | .tx_threshold = 8, | 460 | .tx_threshold = 8, |
474 | .rx_threshold = 8, | 461 | .rx_threshold = 8, |
475 | .dma_burst_size = 8, | 462 | .dma_burst_size = 8, |
476 | .timeout = 235, | 463 | .timeout = 235, |
477 | .cs_control = spi1control, | 464 | .gpio_cs = 24, |
478 | }; | 465 | }; |
479 | 466 | ||
480 | static struct pxa2xx_spi_chip cc2420_info = { | 467 | static struct pxa2xx_spi_chip cc2420_info = { |
@@ -482,7 +469,7 @@ static struct pxa2xx_spi_chip cc2420_info = { | |||
482 | .rx_threshold = 8, | 469 | .rx_threshold = 8, |
483 | .dma_burst_size = 8, | 470 | .dma_burst_size = 8, |
484 | .timeout = 235, | 471 | .timeout = 235, |
485 | .cs_control = spi3control, | 472 | .gpio_cs = 39, |
486 | }; | 473 | }; |
487 | 474 | ||
488 | static struct spi_board_info spi_board_info[] __initdata = { | 475 | static struct spi_board_info spi_board_info[] __initdata = { |
@@ -538,8 +525,6 @@ static void __init imote2_init(void) | |||
538 | /* SPI chip select directions - all other directions should | 525 | /* SPI chip select directions - all other directions should |
539 | * be handled by drivers.*/ | 526 | * be handled by drivers.*/ |
540 | gpio_direction_output(37, 0); | 527 | gpio_direction_output(37, 0); |
541 | gpio_direction_output(24, 0); | ||
542 | gpio_direction_output(39, 0); | ||
543 | 528 | ||
544 | platform_add_devices(imote2_devices, ARRAY_SIZE(imote2_devices)); | 529 | platform_add_devices(imote2_devices, ARRAY_SIZE(imote2_devices)); |
545 | 530 | ||