diff options
Diffstat (limited to 'arch/blackfin/mach-bf527/boards/ezkit.c')
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezkit.c | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c index d0864111ef59..799a1d1fa890 100644 --- a/arch/blackfin/mach-bf527/boards/ezkit.c +++ b/arch/blackfin/mach-bf527/boards/ezkit.c | |||
@@ -77,7 +77,6 @@ static struct resource bfin_isp1760_resources[] = { | |||
77 | 77 | ||
78 | static struct isp1760_platform_data isp1760_priv = { | 78 | static struct isp1760_platform_data isp1760_priv = { |
79 | .is_isp1761 = 0, | 79 | .is_isp1761 = 0, |
80 | .port1_disable = 0, | ||
81 | .bus_width_16 = 1, | 80 | .bus_width_16 = 1, |
82 | .port1_otg = 0, | 81 | .port1_otg = 0, |
83 | .analog_oc = 0, | 82 | .analog_oc = 0, |
@@ -485,8 +484,8 @@ static struct bfin5xx_spi_chip spi_flash_chip_info = { | |||
485 | }; | 484 | }; |
486 | #endif | 485 | #endif |
487 | 486 | ||
488 | #if defined(CONFIG_SPI_ADC_BF533) \ | 487 | #if defined(CONFIG_BFIN_SPI_ADC) \ |
489 | || defined(CONFIG_SPI_ADC_BF533_MODULE) | 488 | || defined(CONFIG_BFIN_SPI_ADC_MODULE) |
490 | /* SPI ADC chip */ | 489 | /* SPI ADC chip */ |
491 | static struct bfin5xx_spi_chip spi_adc_chip_info = { | 490 | static struct bfin5xx_spi_chip spi_adc_chip_info = { |
492 | .enable_dma = 1, /* use dma transfer with this chip*/ | 491 | .enable_dma = 1, /* use dma transfer with this chip*/ |
@@ -509,6 +508,13 @@ static struct bfin5xx_spi_chip ad9960_spi_chip_info = { | |||
509 | }; | 508 | }; |
510 | #endif | 509 | #endif |
511 | 510 | ||
511 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) | ||
512 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { | ||
513 | .enable_dma = 0, | ||
514 | .bits_per_word = 8, | ||
515 | }; | ||
516 | #endif | ||
517 | |||
512 | #if defined(CONFIG_PBX) | 518 | #if defined(CONFIG_PBX) |
513 | static struct bfin5xx_spi_chip spi_si3xxx_chip_info = { | 519 | static struct bfin5xx_spi_chip spi_si3xxx_chip_info = { |
514 | .ctl_reg = 0x4, /* send zero */ | 520 | .ctl_reg = 0x4, /* send zero */ |
@@ -593,8 +599,8 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
593 | }, | 599 | }, |
594 | #endif | 600 | #endif |
595 | 601 | ||
596 | #if defined(CONFIG_SPI_ADC_BF533) \ | 602 | #if defined(CONFIG_BFIN_SPI_ADC) \ |
597 | || defined(CONFIG_SPI_ADC_BF533_MODULE) | 603 | || defined(CONFIG_BFIN_SPI_ADC_MODULE) |
598 | { | 604 | { |
599 | .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */ | 605 | .modalias = "bfin_spi_adc", /* Name of spi_driver for this device */ |
600 | .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ | 606 | .max_speed_hz = 6250000, /* max spi clock (SCK) speed in HZ */ |
@@ -624,6 +630,17 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
624 | .controller_data = &ad9960_spi_chip_info, | 630 | .controller_data = &ad9960_spi_chip_info, |
625 | }, | 631 | }, |
626 | #endif | 632 | #endif |
633 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) | ||
634 | { | ||
635 | .modalias = "mmc_spi", | ||
636 | .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ | ||
637 | .bus_num = 0, | ||
638 | .chip_select = 3, | ||
639 | .controller_data = &mmc_spi_chip_info, | ||
640 | .mode = SPI_MODE_0, | ||
641 | }, | ||
642 | #endif | ||
643 | |||
627 | #if defined(CONFIG_PBX) | 644 | #if defined(CONFIG_PBX) |
628 | { | 645 | { |
629 | .modalias = "fxs-spi", | 646 | .modalias = "fxs-spi", |
@@ -705,6 +722,11 @@ static struct resource bfin_spi0_resource[] = { | |||
705 | [1] = { | 722 | [1] = { |
706 | .start = CH_SPI, | 723 | .start = CH_SPI, |
707 | .end = CH_SPI, | 724 | .end = CH_SPI, |
725 | .flags = IORESOURCE_DMA, | ||
726 | }, | ||
727 | [2] = { | ||
728 | .start = IRQ_SPI, | ||
729 | .end = IRQ_SPI, | ||
708 | .flags = IORESOURCE_IRQ, | 730 | .flags = IORESOURCE_IRQ, |
709 | }, | 731 | }, |
710 | }; | 732 | }; |
@@ -836,7 +858,7 @@ static struct platform_device i2c_bfin_twi_device = { | |||
836 | #endif | 858 | #endif |
837 | 859 | ||
838 | static struct i2c_board_info __initdata bfin_i2c_board_info[] = { | 860 | static struct i2c_board_info __initdata bfin_i2c_board_info[] = { |
839 | #if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE) | 861 | #if defined(CONFIG_BFIN_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE) |
840 | { | 862 | { |
841 | I2C_BOARD_INFO("pcf8574_lcd", 0x22), | 863 | I2C_BOARD_INFO("pcf8574_lcd", 0x22), |
842 | }, | 864 | }, |