diff options
Diffstat (limited to 'arch/blackfin/mach-bf537')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/cm_bf537e.c | 24 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/cm_bf537u.c | 24 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/minotaur.c | 24 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/pnav10.c | 24 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 24 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/tcm_bf537.c | 24 |
6 files changed, 138 insertions, 6 deletions
diff --git a/arch/blackfin/mach-bf537/boards/cm_bf537e.c b/arch/blackfin/mach-bf537/boards/cm_bf537e.c index e2e7be40ef44..836698c4ee54 100644 --- a/arch/blackfin/mach-bf537/boards/cm_bf537e.c +++ b/arch/blackfin/mach-bf537/boards/cm_bf537e.c | |||
@@ -597,13 +597,35 @@ static struct platform_device bfin_sport1_uart_device = { | |||
597 | #endif | 597 | #endif |
598 | 598 | ||
599 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 599 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) |
600 | #include <linux/bfin_mac.h> | ||
601 | static const unsigned short bfin_mac_peripherals[] = P_MII0; | ||
602 | |||
603 | static struct bfin_phydev_platform_data bfin_phydev_data[] = { | ||
604 | { | ||
605 | .addr = 1, | ||
606 | .irq = IRQ_MAC_PHYINT, | ||
607 | }, | ||
608 | }; | ||
609 | |||
610 | static struct bfin_mii_bus_platform_data bfin_mii_bus_data = { | ||
611 | .phydev_number = 1, | ||
612 | .phydev_data = bfin_phydev_data, | ||
613 | .phy_mode = PHY_INTERFACE_MODE_MII, | ||
614 | .mac_peripherals = bfin_mac_peripherals, | ||
615 | }; | ||
616 | |||
600 | static struct platform_device bfin_mii_bus = { | 617 | static struct platform_device bfin_mii_bus = { |
601 | .name = "bfin_mii_bus", | 618 | .name = "bfin_mii_bus", |
619 | .dev = { | ||
620 | .platform_data = &bfin_mii_bus_data, | ||
621 | } | ||
602 | }; | 622 | }; |
603 | 623 | ||
604 | static struct platform_device bfin_mac_device = { | 624 | static struct platform_device bfin_mac_device = { |
605 | .name = "bfin_mac", | 625 | .name = "bfin_mac", |
606 | .dev.platform_data = &bfin_mii_bus, | 626 | .dev = { |
627 | .platform_data = &bfin_mii_bus, | ||
628 | } | ||
607 | }; | 629 | }; |
608 | #endif | 630 | #endif |
609 | 631 | ||
diff --git a/arch/blackfin/mach-bf537/boards/cm_bf537u.c b/arch/blackfin/mach-bf537/boards/cm_bf537u.c index 752c833f7ca8..2a85670273cb 100644 --- a/arch/blackfin/mach-bf537/boards/cm_bf537u.c +++ b/arch/blackfin/mach-bf537/boards/cm_bf537u.c | |||
@@ -562,13 +562,35 @@ static struct platform_device bfin_sport1_uart_device = { | |||
562 | #endif | 562 | #endif |
563 | 563 | ||
564 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 564 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) |
565 | #include <linux/bfin_mac.h> | ||
566 | static const unsigned short bfin_mac_peripherals[] = P_MII0; | ||
567 | |||
568 | static struct bfin_phydev_platform_data bfin_phydev_data[] = { | ||
569 | { | ||
570 | .addr = 1, | ||
571 | .irq = IRQ_MAC_PHYINT, | ||
572 | }, | ||
573 | }; | ||
574 | |||
575 | static struct bfin_mii_bus_platform_data bfin_mii_bus_data = { | ||
576 | .phydev_number = 1, | ||
577 | .phydev_data = bfin_phydev_data, | ||
578 | .phy_mode = PHY_INTERFACE_MODE_MII, | ||
579 | .mac_peripherals = bfin_mac_peripherals, | ||
580 | }; | ||
581 | |||
565 | static struct platform_device bfin_mii_bus = { | 582 | static struct platform_device bfin_mii_bus = { |
566 | .name = "bfin_mii_bus", | 583 | .name = "bfin_mii_bus", |
584 | .dev = { | ||
585 | .platform_data = &bfin_mii_bus_data, | ||
586 | } | ||
567 | }; | 587 | }; |
568 | 588 | ||
569 | static struct platform_device bfin_mac_device = { | 589 | static struct platform_device bfin_mac_device = { |
570 | .name = "bfin_mac", | 590 | .name = "bfin_mac", |
571 | .dev.platform_data = &bfin_mii_bus, | 591 | .dev = { |
592 | .platform_data = &bfin_mii_bus, | ||
593 | } | ||
572 | }; | 594 | }; |
573 | #endif | 595 | #endif |
574 | 596 | ||
diff --git a/arch/blackfin/mach-bf537/boards/minotaur.c b/arch/blackfin/mach-bf537/boards/minotaur.c index 05d45994480e..49800518412c 100644 --- a/arch/blackfin/mach-bf537/boards/minotaur.c +++ b/arch/blackfin/mach-bf537/boards/minotaur.c | |||
@@ -68,13 +68,35 @@ static struct platform_device rtc_device = { | |||
68 | #endif | 68 | #endif |
69 | 69 | ||
70 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 70 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) |
71 | #include <linux/bfin_mac.h> | ||
72 | static const unsigned short bfin_mac_peripherals[] = P_MII0; | ||
73 | |||
74 | static struct bfin_phydev_platform_data bfin_phydev_data[] = { | ||
75 | { | ||
76 | .addr = 1, | ||
77 | .irq = IRQ_MAC_PHYINT, | ||
78 | }, | ||
79 | }; | ||
80 | |||
81 | static struct bfin_mii_bus_platform_data bfin_mii_bus_data = { | ||
82 | .phydev_number = 1, | ||
83 | .phydev_data = bfin_phydev_data, | ||
84 | .phy_mode = PHY_INTERFACE_MODE_MII, | ||
85 | .mac_peripherals = bfin_mac_peripherals, | ||
86 | }; | ||
87 | |||
71 | static struct platform_device bfin_mii_bus = { | 88 | static struct platform_device bfin_mii_bus = { |
72 | .name = "bfin_mii_bus", | 89 | .name = "bfin_mii_bus", |
90 | .dev = { | ||
91 | .platform_data = &bfin_mii_bus_data, | ||
92 | } | ||
73 | }; | 93 | }; |
74 | 94 | ||
75 | static struct platform_device bfin_mac_device = { | 95 | static struct platform_device bfin_mac_device = { |
76 | .name = "bfin_mac", | 96 | .name = "bfin_mac", |
77 | .dev.platform_data = &bfin_mii_bus, | 97 | .dev = { |
98 | .platform_data = &bfin_mii_bus, | ||
99 | } | ||
78 | }; | 100 | }; |
79 | #endif | 101 | #endif |
80 | 102 | ||
diff --git a/arch/blackfin/mach-bf537/boards/pnav10.c b/arch/blackfin/mach-bf537/boards/pnav10.c index 6b03808800a6..b95807894e25 100644 --- a/arch/blackfin/mach-bf537/boards/pnav10.c +++ b/arch/blackfin/mach-bf537/boards/pnav10.c | |||
@@ -99,13 +99,35 @@ static struct platform_device smc91x_device = { | |||
99 | #endif | 99 | #endif |
100 | 100 | ||
101 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 101 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) |
102 | #include <linux/bfin_mac.h> | ||
103 | static const unsigned short bfin_mac_peripherals[] = P_RMII0; | ||
104 | |||
105 | static struct bfin_phydev_platform_data bfin_phydev_data[] = { | ||
106 | { | ||
107 | .addr = 1, | ||
108 | .irq = IRQ_MAC_PHYINT, | ||
109 | }, | ||
110 | }; | ||
111 | |||
112 | static struct bfin_mii_bus_platform_data bfin_mii_bus_data = { | ||
113 | .phydev_number = 1, | ||
114 | .phydev_data = bfin_phydev_data, | ||
115 | .phy_mode = PHY_INTERFACE_MODE_RMII, | ||
116 | .mac_peripherals = bfin_mac_peripherals, | ||
117 | }; | ||
118 | |||
102 | static struct platform_device bfin_mii_bus = { | 119 | static struct platform_device bfin_mii_bus = { |
103 | .name = "bfin_mii_bus", | 120 | .name = "bfin_mii_bus", |
121 | .dev = { | ||
122 | .platform_data = &bfin_mii_bus_data, | ||
123 | } | ||
104 | }; | 124 | }; |
105 | 125 | ||
106 | static struct platform_device bfin_mac_device = { | 126 | static struct platform_device bfin_mac_device = { |
107 | .name = "bfin_mac", | 127 | .name = "bfin_mac", |
108 | .dev.platform_data = &bfin_mii_bus, | 128 | .dev = { |
129 | .platform_data = &bfin_mii_bus, | ||
130 | } | ||
109 | }; | 131 | }; |
110 | #endif | 132 | #endif |
111 | 133 | ||
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index cd2c797c8c9f..3aa344ce8e52 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -327,13 +327,35 @@ static struct platform_device bfin_can_device = { | |||
327 | #endif | 327 | #endif |
328 | 328 | ||
329 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 329 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) |
330 | #include <linux/bfin_mac.h> | ||
331 | static const unsigned short bfin_mac_peripherals[] = P_MII0; | ||
332 | |||
333 | static struct bfin_phydev_platform_data bfin_phydev_data[] = { | ||
334 | { | ||
335 | .addr = 1, | ||
336 | .irq = PHY_POLL, /* IRQ_MAC_PHYINT */ | ||
337 | }, | ||
338 | }; | ||
339 | |||
340 | static struct bfin_mii_bus_platform_data bfin_mii_bus_data = { | ||
341 | .phydev_number = 1, | ||
342 | .phydev_data = bfin_phydev_data, | ||
343 | .phy_mode = PHY_INTERFACE_MODE_MII, | ||
344 | .mac_peripherals = bfin_mac_peripherals, | ||
345 | }; | ||
346 | |||
330 | static struct platform_device bfin_mii_bus = { | 347 | static struct platform_device bfin_mii_bus = { |
331 | .name = "bfin_mii_bus", | 348 | .name = "bfin_mii_bus", |
349 | .dev = { | ||
350 | .platform_data = &bfin_mii_bus_data, | ||
351 | } | ||
332 | }; | 352 | }; |
333 | 353 | ||
334 | static struct platform_device bfin_mac_device = { | 354 | static struct platform_device bfin_mac_device = { |
335 | .name = "bfin_mac", | 355 | .name = "bfin_mac", |
336 | .dev.platform_data = &bfin_mii_bus, | 356 | .dev = { |
357 | .platform_data = &bfin_mii_bus, | ||
358 | } | ||
337 | }; | 359 | }; |
338 | #endif | 360 | #endif |
339 | 361 | ||
diff --git a/arch/blackfin/mach-bf537/boards/tcm_bf537.c b/arch/blackfin/mach-bf537/boards/tcm_bf537.c index a4d62b5fc7ba..31498add1a42 100644 --- a/arch/blackfin/mach-bf537/boards/tcm_bf537.c +++ b/arch/blackfin/mach-bf537/boards/tcm_bf537.c | |||
@@ -564,13 +564,35 @@ static struct platform_device bfin_sport1_uart_device = { | |||
564 | #endif | 564 | #endif |
565 | 565 | ||
566 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) | 566 | #if defined(CONFIG_BFIN_MAC) || defined(CONFIG_BFIN_MAC_MODULE) |
567 | #include <linux/bfin_mac.h> | ||
568 | static const unsigned short bfin_mac_peripherals[] = P_MII0; | ||
569 | |||
570 | static struct bfin_phydev_platform_data bfin_phydev_data[] = { | ||
571 | { | ||
572 | .addr = 1, | ||
573 | .irq = IRQ_MAC_PHYINT, | ||
574 | }, | ||
575 | }; | ||
576 | |||
577 | static struct bfin_mii_bus_platform_data bfin_mii_bus_data = { | ||
578 | .phydev_number = 1, | ||
579 | .phydev_data = bfin_phydev_data, | ||
580 | .phy_mode = PHY_INTERFACE_MODE_MII, | ||
581 | .mac_peripherals = bfin_mac_peripherals, | ||
582 | }; | ||
583 | |||
567 | static struct platform_device bfin_mii_bus = { | 584 | static struct platform_device bfin_mii_bus = { |
568 | .name = "bfin_mii_bus", | 585 | .name = "bfin_mii_bus", |
586 | .dev = { | ||
587 | .platform_data = &bfin_mii_bus_data, | ||
588 | } | ||
569 | }; | 589 | }; |
570 | 590 | ||
571 | static struct platform_device bfin_mac_device = { | 591 | static struct platform_device bfin_mac_device = { |
572 | .name = "bfin_mac", | 592 | .name = "bfin_mac", |
573 | .dev.platform_data = &bfin_mii_bus, | 593 | .dev = { |
594 | .platform_data = &bfin_mii_bus, | ||
595 | } | ||
574 | }; | 596 | }; |
575 | #endif | 597 | #endif |
576 | 598 | ||