diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2009-02-19 20:32:30 -0500 |
---|---|---|
committer | Nicolas Pitre <nico@cam.org> | 2009-02-19 22:43:14 -0500 |
commit | f1f5465782a96201798ef1e8167ed3ffaefdb30d (patch) | |
tree | 8fa52172861ee9e6c5f6b74335bac723938851b1 /arch/arm/mach-mv78xx0/db78x00-bp-setup.c | |
parent | 712424fd95134bf88d27f3885389fe6ab13f34ac (diff) |
[ARM] mv78xx0: enable eth2/eth3 on the mv78xx0 A0 development board
The A0 revision of the mv78xx0 development board has four ethernet
ports, with PHY IDs 8-11, whereas the Z0 version has two, with PHY
addresses 8-9. This patch configures the third and fourth ethernet
port to use the PHY addresses on the A0 board to enable use of those
ports -- if we are running on a Z0 board, the ge10/11 setup code in
common.c will force these back to PHYless mode.
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Diffstat (limited to 'arch/arm/mach-mv78xx0/db78x00-bp-setup.c')
-rw-r--r-- | arch/arm/mach-mv78xx0/db78x00-bp-setup.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/mach-mv78xx0/db78x00-bp-setup.c b/arch/arm/mach-mv78xx0/db78x00-bp-setup.c index 2e285bbb7bbd..be0a59a6139e 100644 --- a/arch/arm/mach-mv78xx0/db78x00-bp-setup.c +++ b/arch/arm/mach-mv78xx0/db78x00-bp-setup.c | |||
@@ -28,15 +28,11 @@ static struct mv643xx_eth_platform_data db78x00_ge01_data = { | |||
28 | }; | 28 | }; |
29 | 29 | ||
30 | static struct mv643xx_eth_platform_data db78x00_ge10_data = { | 30 | static struct mv643xx_eth_platform_data db78x00_ge10_data = { |
31 | .phy_addr = MV643XX_ETH_PHY_NONE, | 31 | .phy_addr = MV643XX_ETH_PHY_ADDR(10), |
32 | .speed = SPEED_1000, | ||
33 | .duplex = DUPLEX_FULL, | ||
34 | }; | 32 | }; |
35 | 33 | ||
36 | static struct mv643xx_eth_platform_data db78x00_ge11_data = { | 34 | static struct mv643xx_eth_platform_data db78x00_ge11_data = { |
37 | .phy_addr = MV643XX_ETH_PHY_NONE, | 35 | .phy_addr = MV643XX_ETH_PHY_ADDR(11), |
38 | .speed = SPEED_1000, | ||
39 | .duplex = DUPLEX_FULL, | ||
40 | }; | 36 | }; |
41 | 37 | ||
42 | static struct mv_sata_platform_data db78x00_sata_data = { | 38 | static struct mv_sata_platform_data db78x00_sata_data = { |