diff options
Diffstat (limited to 'arch/blackfin/mach-bf518/boards/ezbrd.c')
-rw-r--r-- | arch/blackfin/mach-bf518/boards/ezbrd.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/arch/blackfin/mach-bf518/boards/ezbrd.c b/arch/blackfin/mach-bf518/boards/ezbrd.c index b894c8abe7ec..c0ccadcfa44e 100644 --- a/arch/blackfin/mach-bf518/boards/ezbrd.c +++ b/arch/blackfin/mach-bf518/boards/ezbrd.c | |||
@@ -104,24 +104,23 @@ static const unsigned short bfin_mac_peripherals[] = { | |||
104 | 104 | ||
105 | static struct bfin_phydev_platform_data bfin_phydev_data[] = { | 105 | static struct bfin_phydev_platform_data bfin_phydev_data[] = { |
106 | { | 106 | { |
107 | .addr = 1, | 107 | #if defined(CONFIG_NET_DSA_KSZ8893M) || defined(CONFIG_NET_DSA_KSZ8893M_MODULE) |
108 | .irq = IRQ_MAC_PHYINT, | ||
109 | }, | ||
110 | { | ||
111 | .addr = 2, | ||
112 | .irq = IRQ_MAC_PHYINT, | ||
113 | }, | ||
114 | { | ||
115 | .addr = 3, | 108 | .addr = 3, |
109 | #else | ||
110 | .addr = 1, | ||
111 | #endif | ||
116 | .irq = IRQ_MAC_PHYINT, | 112 | .irq = IRQ_MAC_PHYINT, |
117 | }, | 113 | }, |
118 | }; | 114 | }; |
119 | 115 | ||
120 | static struct bfin_mii_bus_platform_data bfin_mii_bus_data = { | 116 | static struct bfin_mii_bus_platform_data bfin_mii_bus_data = { |
121 | .phydev_number = 3, | 117 | .phydev_number = 1, |
122 | .phydev_data = bfin_phydev_data, | 118 | .phydev_data = bfin_phydev_data, |
123 | .phy_mode = PHY_INTERFACE_MODE_MII, | 119 | .phy_mode = PHY_INTERFACE_MODE_MII, |
124 | .mac_peripherals = bfin_mac_peripherals, | 120 | .mac_peripherals = bfin_mac_peripherals, |
121 | #if defined(CONFIG_NET_DSA_KSZ8893M) || defined(CONFIG_NET_DSA_KSZ8893M_MODULE) | ||
122 | .phy_mask = 0xfff7, /* Only probe the port phy connect to the on chip MAC */ | ||
123 | #endif | ||
125 | }; | 124 | }; |
126 | 125 | ||
127 | static struct platform_device bfin_mii_bus = { | 126 | static struct platform_device bfin_mii_bus = { |
@@ -453,7 +452,7 @@ static struct resource bfin_uart0_resources[] = { | |||
453 | }, | 452 | }, |
454 | }; | 453 | }; |
455 | 454 | ||
456 | unsigned short bfin_uart0_peripherals[] = { | 455 | static unsigned short bfin_uart0_peripherals[] = { |
457 | P_UART0_TX, P_UART0_RX, 0 | 456 | P_UART0_TX, P_UART0_RX, 0 |
458 | }; | 457 | }; |
459 | 458 | ||
@@ -496,7 +495,7 @@ static struct resource bfin_uart1_resources[] = { | |||
496 | }, | 495 | }, |
497 | }; | 496 | }; |
498 | 497 | ||
499 | unsigned short bfin_uart1_peripherals[] = { | 498 | static unsigned short bfin_uart1_peripherals[] = { |
500 | P_UART1_TX, P_UART1_RX, 0 | 499 | P_UART1_TX, P_UART1_RX, 0 |
501 | }; | 500 | }; |
502 | 501 | ||
@@ -636,9 +635,9 @@ static struct resource bfin_sport0_uart_resources[] = { | |||
636 | }, | 635 | }, |
637 | }; | 636 | }; |
638 | 637 | ||
639 | unsigned short bfin_sport0_peripherals[] = { | 638 | static unsigned short bfin_sport0_peripherals[] = { |
640 | P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS, | 639 | P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS, |
641 | P_SPORT0_DRPRI, P_SPORT0_RSCLK, P_SPORT0_DRSEC, P_SPORT0_DTSEC, 0 | 640 | P_SPORT0_DRPRI, P_SPORT0_RSCLK, 0 |
642 | }; | 641 | }; |
643 | 642 | ||
644 | static struct platform_device bfin_sport0_uart_device = { | 643 | static struct platform_device bfin_sport0_uart_device = { |
@@ -670,9 +669,9 @@ static struct resource bfin_sport1_uart_resources[] = { | |||
670 | }, | 669 | }, |
671 | }; | 670 | }; |
672 | 671 | ||
673 | unsigned short bfin_sport1_peripherals[] = { | 672 | static unsigned short bfin_sport1_peripherals[] = { |
674 | P_SPORT1_TFS, P_SPORT1_DTPRI, P_SPORT1_TSCLK, P_SPORT1_RFS, | 673 | P_SPORT1_TFS, P_SPORT1_DTPRI, P_SPORT1_TSCLK, P_SPORT1_RFS, |
675 | P_SPORT1_DRPRI, P_SPORT1_RSCLK, P_SPORT1_DRSEC, P_SPORT1_DTSEC, 0 | 674 | P_SPORT1_DRPRI, P_SPORT1_RSCLK, 0 |
676 | }; | 675 | }; |
677 | 676 | ||
678 | static struct platform_device bfin_sport1_uart_device = { | 677 | static struct platform_device bfin_sport1_uart_device = { |