]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/miiphyutil.c
ppc4xx: Remove some testing code from 4xx_pcie.c
[karo-tx-uboot.git] / common / miiphyutil.c
index 5ef4a33ce774a8a3dd73db6e0f842fe4c304317a..196ef4a7ba54e6754a9853a338fd7b7b8b9fb3d2 100644 (file)
@@ -299,7 +299,7 @@ int miiphy_reset (char *devname, unsigned char addr)
                debug ("PHY status read failed\n");
                return (-1);
        }
-       if (miiphy_write (devname, addr, PHY_BMCR, reg | 0x8000) != 0) {
+       if (miiphy_write (devname, addr, PHY_BMCR, reg | PHY_BMCR_RESET) != 0) {
                debug ("PHY reset failed\n");
                return (-1);
        }
@@ -462,7 +462,7 @@ int miiphy_is_1000base_x (char *devname, unsigned char addr)
 #endif
 }
 
-#ifdef CFG_FAULT_ECHO_LINK_DOWN
+#ifdef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
 /*****************************************************************************
  *
  * Determine link status