aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf537/boards/pnav10.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/blackfin/mach-bf537/boards/pnav10.c')
-rw-r--r--arch/blackfin/mach-bf537/boards/pnav10.c34
1 files changed, 15 insertions, 19 deletions
diff --git a/arch/blackfin/mach-bf537/boards/pnav10.c b/arch/blackfin/mach-bf537/boards/pnav10.c
index 89de94f4545d..4e1de1e53f89 100644
--- a/arch/blackfin/mach-bf537/boards/pnav10.c
+++ b/arch/blackfin/mach-bf537/boards/pnav10.c
@@ -198,8 +198,13 @@ static struct platform_device isp1362_hcd_device = {
198#endif 198#endif
199 199
200#if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 200#if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
201static struct platform_device bfin_mii_bus = {
202 .name = "bfin_mii_bus",
203};
204
201static struct platform_device bfin_mac_device = { 205static struct platform_device bfin_mac_device = {
202 .name = "bfin_mac", 206 .name = "bfin_mac",
207 .dev.platform_data = &bfin_mii_bus,
203}; 208};
204#endif 209#endif
205 210
@@ -284,9 +289,9 @@ static struct bfin5xx_spi_chip ad9960_spi_chip_info = {
284}; 289};
285#endif 290#endif
286 291
287#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE) 292#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
288static struct bfin5xx_spi_chip spi_mmc_chip_info = { 293static struct bfin5xx_spi_chip mmc_spi_chip_info = {
289 .enable_dma = 1, 294 .enable_dma = 0,
290 .bits_per_word = 8, 295 .bits_per_word = 8,
291}; 296};
292#endif 297#endif
@@ -359,23 +364,13 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
359 .controller_data = &ad9960_spi_chip_info, 364 .controller_data = &ad9960_spi_chip_info,
360 }, 365 },
361#endif 366#endif
362#if defined(CONFIG_SPI_MMC) || defined(CONFIG_SPI_MMC_MODULE) 367#if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE)
363 {
364 .modalias = "spi_mmc_dummy",
365 .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
366 .bus_num = 0,
367 .chip_select = 7,
368 .platform_data = NULL,
369 .controller_data = &spi_mmc_chip_info,
370 .mode = SPI_MODE_3,
371 },
372 { 368 {
373 .modalias = "spi_mmc", 369 .modalias = "mmc_spi",
374 .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */ 370 .max_speed_hz = 25000000, /* max spi clock (SCK) speed in HZ */
375 .bus_num = 0, 371 .bus_num = 0,
376 .chip_select = CONFIG_SPI_MMC_CS_CHAN, 372 .chip_select = 5,
377 .platform_data = NULL, 373 .controller_data = &mmc_spi_chip_info,
378 .controller_data = &spi_mmc_chip_info,
379 .mode = SPI_MODE_3, 374 .mode = SPI_MODE_3,
380 }, 375 },
381#endif 376#endif
@@ -529,6 +524,7 @@ static struct platform_device *stamp_devices[] __initdata = {
529#endif 524#endif
530 525
531#if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) 526#if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE)
527 &bfin_mii_bus,
532 &bfin_mac_device, 528 &bfin_mac_device,
533#endif 529#endif
534 530
@@ -558,7 +554,7 @@ static struct platform_device *stamp_devices[] __initdata = {
558#endif 554#endif
559}; 555};
560 556
561static int __init stamp_init(void) 557static int __init pnav_init(void)
562{ 558{
563 printk(KERN_INFO "%s(): registering device resources\n", __func__); 559 printk(KERN_INFO "%s(): registering device resources\n", __func__);
564 platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices)); 560 platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
@@ -569,7 +565,7 @@ static int __init stamp_init(void)
569 return 0; 565 return 0;
570} 566}
571 567
572arch_initcall(stamp_init); 568arch_initcall(pnav_init);
573 569
574void bfin_get_ether_addr(char *addr) 570void bfin_get_ether_addr(char *addr)
575{ 571{