diff options
| -rw-r--r-- | arch/mips/alchemy/common/platform.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/arch/mips/alchemy/common/platform.c b/arch/mips/alchemy/common/platform.c index 3fbe30c1fd9..2580e77624d 100644 --- a/arch/mips/alchemy/common/platform.c +++ b/arch/mips/alchemy/common/platform.c | |||
| @@ -357,15 +357,6 @@ static struct resource au1xxx_eth0_resources[] = { | |||
| 357 | #endif | 357 | #endif |
| 358 | }; | 358 | }; |
| 359 | 359 | ||
| 360 | static struct resource au1xxx_eth1_resources[] = { | ||
| 361 | #if defined(CONFIG_SOC_AU1000) | ||
| 362 | MAC_RES(AU1000_ETH1_BASE, AU1000_MAC1_ENABLE, AU1000_MAC1_DMA_INT), | ||
| 363 | #elif defined(CONFIG_SOC_AU1550) | ||
| 364 | MAC_RES(AU1550_ETH1_BASE, AU1550_MAC1_ENABLE, AU1550_MAC1_DMA_INT), | ||
| 365 | #elif defined(CONFIG_SOC_AU1500) | ||
| 366 | MAC_RES(AU1500_ETH1_BASE, AU1500_MAC1_ENABLE, AU1500_MAC1_DMA_INT), | ||
| 367 | #endif | ||
| 368 | }; | ||
| 369 | 360 | ||
| 370 | static struct au1000_eth_platform_data au1xxx_eth0_platform_data = { | 361 | static struct au1000_eth_platform_data au1xxx_eth0_platform_data = { |
| 371 | .phy1_search_mac0 = 1, | 362 | .phy1_search_mac0 = 1, |
| @@ -380,6 +371,16 @@ static struct platform_device au1xxx_eth0_device = { | |||
| 380 | }; | 371 | }; |
| 381 | 372 | ||
| 382 | #ifndef CONFIG_SOC_AU1100 | 373 | #ifndef CONFIG_SOC_AU1100 |
| 374 | static struct resource au1xxx_eth1_resources[] = { | ||
| 375 | #if defined(CONFIG_SOC_AU1000) | ||
| 376 | MAC_RES(AU1000_ETH1_BASE, AU1000_MAC1_ENABLE, AU1000_MAC1_DMA_INT), | ||
| 377 | #elif defined(CONFIG_SOC_AU1550) | ||
| 378 | MAC_RES(AU1550_ETH1_BASE, AU1550_MAC1_ENABLE, AU1550_MAC1_DMA_INT), | ||
| 379 | #elif defined(CONFIG_SOC_AU1500) | ||
| 380 | MAC_RES(AU1500_ETH1_BASE, AU1500_MAC1_ENABLE, AU1500_MAC1_DMA_INT), | ||
| 381 | #endif | ||
| 382 | }; | ||
| 383 | |||
| 383 | static struct au1000_eth_platform_data au1xxx_eth1_platform_data = { | 384 | static struct au1000_eth_platform_data au1xxx_eth1_platform_data = { |
| 384 | .phy1_search_mac0 = 1, | 385 | .phy1_search_mac0 = 1, |
| 385 | }; | 386 | }; |
