From 5653fc335a450fa46d89989e1afe5e8bb9a0a52e Mon Sep 17 00:00:00 2001 From: wdenk Date: Sun, 8 Feb 2004 22:55:38 +0000 Subject: * 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 --- cpu/ppc4xx/miiphy.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cpu') 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); -- cgit v1.1