diff options
Diffstat (limited to 'arch/blackfin/mach-bf537/boards/tcm_bf537.c')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/tcm_bf537.c | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/arch/blackfin/mach-bf537/boards/tcm_bf537.c b/arch/blackfin/mach-bf537/boards/tcm_bf537.c index 2f4b066153c5..53ad10f3cd76 100644 --- a/arch/blackfin/mach-bf537/boards/tcm_bf537.c +++ b/arch/blackfin/mach-bf537/boards/tcm_bf537.c | |||
@@ -108,9 +108,9 @@ static struct bfin5xx_spi_chip ad9960_spi_chip_info = { | |||
108 | }; | 108 | }; |
109 | #endif | 109 | #endif |
110 | 110 | ||
111 | #if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE) | 111 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) |
112 | static struct bfin5xx_spi_chip spi_mmc_chip_info = { | 112 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { |
113 | .enable_dma = 1, | 113 | .enable_dma = 0, |
114 | .bits_per_word = 8, | 114 | .bits_per_word = 8, |
115 | }; | 115 | }; |
116 | #endif | 116 | #endif |
@@ -160,23 +160,13 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
160 | }, | 160 | }, |
161 | #endif | 161 | #endif |
162 | 162 | ||
163 | #if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE) | 163 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) |
164 | { | ||
165 | .modalias = "spi_mmc_dummy", | ||
166 | .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ | ||
167 | .bus_num = 0, | ||
168 | .chip_select = 7, | ||
169 | .platform_data = NULL, | ||
170 | .controller_data = &spi_mmc_chip_info, | ||
171 | .mode = SPI_MODE_3, | ||
172 | }, | ||
173 | { | 164 | { |
174 | .modalias = "spi_mmc", | 165 | .modalias = "mmc_spi", |
175 | .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ | 166 | .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ |
176 | .bus_num = 0, | 167 | .bus_num = 0, |
177 | .chip_select = CONFIG_SPI_MMC_CS_CHAN, | 168 | .chip_select = 5, |
178 | .platform_data = NULL, | 169 | .controller_data = &mmc_spi_chip_info, |
179 | .controller_data = &spi_mmc_chip_info, | ||
180 | .mode = SPI_MODE_3, | 170 | .mode = SPI_MODE_3, |
181 | }, | 171 | }, |
182 | #endif | 172 | #endif |
@@ -481,8 +471,13 @@ static struct platform_device bfin_sport1_uart_device = { | |||
481 | #endif | 471 | #endif |
482 | 472 | ||
483 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 473 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) |
474 | static struct platform_device bfin_mii_bus = { | ||
475 | .name = "bfin_mii_bus", | ||
476 | }; | ||
477 | |||
484 | static struct platform_device bfin_mac_device = { | 478 | static struct platform_device bfin_mac_device = { |
485 | .name = "bfin_mac", | 479 | .name = "bfin_mac", |
480 | .dev.platform_data = &bfin_mii_bus, | ||
486 | }; | 481 | }; |
487 | #endif | 482 | #endif |
488 | 483 | ||
@@ -593,6 +588,7 @@ static struct platform_device *cm_bf537_devices[] __initdata = { | |||
593 | #endif | 588 | #endif |
594 | 589 | ||
595 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 590 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) |
591 | &bfin_mii_bus, | ||
596 | &bfin_mac_device, | 592 | &bfin_mac_device, |
597 | #endif | 593 | #endif |
598 | 594 | ||
@@ -615,7 +611,7 @@ static struct platform_device *cm_bf537_devices[] __initdata = { | |||
615 | &bfin_gpios_device, | 611 | &bfin_gpios_device, |
616 | }; | 612 | }; |
617 | 613 | ||
618 | static int __init cm_bf537_init(void) | 614 | static int __init tcm_bf537_init(void) |
619 | { | 615 | { |
620 | printk(KERN_INFO "%s(): registering device resources\n", __func__); | 616 | printk(KERN_INFO "%s(): registering device resources\n", __func__); |
621 | platform_add_devices(cm_bf537_devices, ARRAY_SIZE(cm_bf537_devices)); | 617 | platform_add_devices(cm_bf537_devices, ARRAY_SIZE(cm_bf537_devices)); |
@@ -629,7 +625,7 @@ static int __init cm_bf537_init(void) | |||
629 | return 0; | 625 | return 0; |
630 | } | 626 | } |
631 | 627 | ||
632 | arch_initcall(cm_bf537_init); | 628 | arch_initcall(tcm_bf537_init); |
633 | 629 | ||
634 | void bfin_get_ether_addr(char *addr) | 630 | void bfin_get_ether_addr(char *addr) |
635 | { | 631 | { |