diff options
author | Stefan Roese <sr@denx.de> | 2005-11-01 10:02:21 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2005-11-01 10:02:21 +0100 |
commit | d9f2f5008c32c8373d68a4c8e14f50a469965a23 (patch) | |
tree | 64dd39bdb04a7b0d4034d3037e288e7d2341379f /board/mpc8260ads | |
parent | e190290ba40fc5340cefd04dd6abf5def15065b9 (diff) | |
parent | be360d9824d653780ebd3ffc08f1938a8e3dd747 (diff) | |
download | u-boot-imx-d9f2f5008c32c8373d68a4c8e14f50a469965a23.zip u-boot-imx-d9f2f5008c32c8373d68a4c8e14f50a469965a23.tar.gz u-boot-imx-d9f2f5008c32c8373d68a4c8e14f50a469965a23.tar.bz2 |
Merge with /git/u-boot.git
Diffstat (limited to 'board/mpc8260ads')
-rw-r--r-- | board/mpc8260ads/mpc8260ads.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/board/mpc8260ads/mpc8260ads.c b/board/mpc8260ads/mpc8260ads.c index a1d0a08..374e979 100644 --- a/board/mpc8260ads/mpc8260ads.c +++ b/board/mpc8260ads/mpc8260ads.c @@ -238,8 +238,9 @@ void reset_phy (void) * Do not bypass Rx/Tx (de)scrambler (fix configuration error) * Enable autonegotiation. */ - miiphy_write(CFG_PHY_ADDR, 16, 0x610); - miiphy_write(CFG_PHY_ADDR, PHY_BMCR, PHY_BMCR_AUTON | PHY_BMCR_RST_NEG); + bb_miiphy_write(NULL, CFG_PHY_ADDR, 16, 0x610); + bb_miiphy_write(NULL, CFG_PHY_ADDR, PHY_BMCR, + PHY_BMCR_AUTON | PHY_BMCR_RST_NEG); #else /* * Ethernet PHY is configured (by means of configuration pins) @@ -247,9 +248,15 @@ void reset_phy (void) * to advertise all capabilities, including 100Mb/s, and * restart autonegotiation. */ - miiphy_write(CFG_PHY_ADDR, PHY_ANAR, 0x01E1); /* Advertise all capabilities */ - miiphy_write(CFG_PHY_ADDR, PHY_DCR, 0x0000); /* Do not bypass Rx/Tx (de)scrambler */ - miiphy_write(CFG_PHY_ADDR, PHY_BMCR, PHY_BMCR_AUTON | PHY_BMCR_RST_NEG); + + /* Advertise all capabilities */ + bb_miiphy_write(NULL, CFG_PHY_ADDR, PHY_ANAR, 0x01E1); + + /* Do not bypass Rx/Tx (de)scrambler */ + bb_miiphy_write(NULL, CFG_PHY_ADDR, PHY_DCR, 0x0000); + + bb_miiphy_write(NULL, CFG_PHY_ADDR, PHY_BMCR, + PHY_BMCR_AUTON | PHY_BMCR_RST_NEG); #endif /* CONFIG_ADSTYPE == CFG_PQ2FADS */ #endif /* CONFIG_MII */ } |