diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2007-10-29 23:48:42 -0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-10-29 23:48:42 -0400 |
commit | 111cf97d2cf35fbaa5eaff6ec5d395a06e14aadf (patch) | |
tree | 6a203709677b68dbefa349c42aa60ffe50874082 /arch | |
parent | 0355893e77b6c4d24a5843d420e97ae86762f964 (diff) |
Blackfin arch: Fix bug set correct baud for spi mmc and enable SPI after DMA.
Changes:
1. The baud for spi mmc defined in board file is not used by the old
spi driver. A slower value from spi framework is used instead. In latest
bug fixing, the correct baud is use which is too high for spi MMC card.
2. SPI is enabled only after DMA is started.
3. MMC detection IRQ is set to 55.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/blackfin/mach-bf533/boards/stamp.c | 4 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/blackfin/mach-bf533/boards/stamp.c b/arch/blackfin/mach-bf533/boards/stamp.c index f84be4eabfd..62ffa500420 100644 --- a/arch/blackfin/mach-bf533/boards/stamp.c +++ b/arch/blackfin/mach-bf533/boards/stamp.c | |||
@@ -218,7 +218,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
218 | #if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE) | 218 | #if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE) |
219 | { | 219 | { |
220 | .modalias = "spi_mmc_dummy", | 220 | .modalias = "spi_mmc_dummy", |
221 | .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ | 221 | .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ |
222 | .bus_num = 0, | 222 | .bus_num = 0, |
223 | .chip_select = 0, | 223 | .chip_select = 0, |
224 | .platform_data = NULL, | 224 | .platform_data = NULL, |
@@ -227,7 +227,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
227 | }, | 227 | }, |
228 | { | 228 | { |
229 | .modalias = "spi_mmc", | 229 | .modalias = "spi_mmc", |
230 | .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ | 230 | .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ |
231 | .bus_num = 0, | 231 | .bus_num = 0, |
232 | .chip_select = CONFIG_SPI_MMC_CS_CHAN, | 232 | .chip_select = CONFIG_SPI_MMC_CS_CHAN, |
233 | .platform_data = NULL, | 233 | .platform_data = NULL, |
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index cc41f6c2ef4..c18d85e8a0b 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -450,7 +450,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
450 | #if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE) | 450 | #if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE) |
451 | { | 451 | { |
452 | .modalias = "spi_mmc_dummy", | 452 | .modalias = "spi_mmc_dummy", |
453 | .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ | 453 | .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ |
454 | .bus_num = 0, | 454 | .bus_num = 0, |
455 | .chip_select = 0, | 455 | .chip_select = 0, |
456 | .platform_data = NULL, | 456 | .platform_data = NULL, |
@@ -459,7 +459,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
459 | }, | 459 | }, |
460 | { | 460 | { |
461 | .modalias = "spi_mmc", | 461 | .modalias = "spi_mmc", |
462 | .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ | 462 | .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ |
463 | .bus_num = 0, | 463 | .bus_num = 0, |
464 | .chip_select = CONFIG_SPI_MMC_CS_CHAN, | 464 | .chip_select = CONFIG_SPI_MMC_CS_CHAN, |
465 | .platform_data = NULL, | 465 | .platform_data = NULL, |