diff options
author | wdenk <wdenk> | 2004-02-08 22:55:38 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-02-08 22:55:38 +0000 |
commit | 5653fc335a450fa46d89989e1afe5e8bb9a0a52e (patch) | |
tree | e0429de78cb5c69f7fbd4fe7b84a19b1152809ce /cpu/ppc4xx/miiphy.c | |
parent | f6e20fc6ca5a45316f94743d8b60dce4d9766bc8 (diff) | |
download | u-boot-imx-5653fc335a450fa46d89989e1afe5e8bb9a0a52e.zip u-boot-imx-5653fc335a450fa46d89989e1afe5e8bb9a0a52e.tar.gz u-boot-imx-5653fc335a450fa46d89989e1afe5e8bb9a0a52e.tar.bz2 |
* Patch by Yuli Barcohen, 26 Jan 2004:
Allow bzip2 compression for small memory footprint boards
* Patch by Brad Kemp, 21 Jan 2004:
Add support for CFI flash driver for both the Intel and the AMD
command sets.
* Patch by Travis Sawyer, 20 Jan 2004:
Fix pci bridge auto enumeration of sibling p2p bridges.
* Patch by Tolunay Orkun, 12 Jan 2004:
Add some delays as needed for Intel LXT971A PHY support
* Patches by Stephan Linz, 09 Jan 2004:
- avoid warning: unused variable `piop' in board/altera/common/sevenseg.c
- make DK1C20 board configuration related to ASMI conform to
documentation
Diffstat (limited to 'cpu/ppc4xx/miiphy.c')
-rw-r--r-- | cpu/ppc4xx/miiphy.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpu/ppc4xx/miiphy.c b/cpu/ppc4xx/miiphy.c index 5ca6681..3d343ee 100644 --- a/cpu/ppc4xx/miiphy.c +++ b/cpu/ppc4xx/miiphy.c @@ -113,6 +113,9 @@ int miiphy_read (unsigned char addr, unsigned char reg, printf ("a2: write: EMAC_STACR=0x%0x\n", sta_reg); /* test-only */ #endif +#ifdef CONFIG_PHY_CMD_DELAY + udelay (CONFIG_PHY_CMD_DELAY); /* Intel LXT971A needs this */ +#endif sta_reg = in32 (EMAC_STACR); i = 0; while ((sta_reg & EMAC_STACR_OC) == 0) { @@ -173,6 +176,9 @@ int miiphy_write (unsigned char addr, unsigned char reg, out32 (EMAC_STACR, sta_reg); +#ifdef CONFIG_PHY_CMD_DELAY + udelay (CONFIG_PHY_CMD_DELAY); /* Intel LXT971A needs this */ +#endif /* wait for completion */ i = 0; sta_reg = in32 (EMAC_STACR); |