]> git.sur5r.net Git - u-boot/blobdiff - cpu/ppc4xx/miiphy.c
ppc/85xx: add cpu init config file for boot from NAND
[u-boot] / cpu / ppc4xx / miiphy.c
index 01710e71dd9b8fa32cdcba0c3deeeb1386d18ce6..fa3bfc8d9f51f4e438613c9462424e18e39774d7 100644 (file)
@@ -1,4 +1,6 @@
 /*-----------------------------------------------------------------------------+
+  |   This source code is dual-licensed.  You may use it under the terms of the
+  |   GNU General Public License version 2, or under the license below.
   |
   |      This source code has been made available to you by IBM on an AS-IS
   |      basis.  Anyone receiving this source is licensed under IBM
@@ -348,7 +350,7 @@ int emac4xx_miiphy_read (char *devname, unsigned char addr, unsigned char reg,
                return -1;
 
        sta_reg = in_be32((void *)EMAC_STACR + emac_reg);
-       *value = *(u16 *)(&sta_reg);
+       *value = sta_reg >> 16;
 
        return 0;
 }