summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2011-09-11 18:05:29 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-09-30 22:01:01 +0200
commit879cf26130c72bcb1ed0951f4f252d22cd1bf71f (patch)
treea0642c0b36b439e4f811bbd36daf930be0d7a94b /drivers/net
parent50cf8073433748de245f4c2cc57e90a8f7f1a327 (diff)
downloadu-boot-imx-879cf26130c72bcb1ed0951f4f252d22cd1bf71f.zip
u-boot-imx-879cf26130c72bcb1ed0951f4f252d22cd1bf71f.tar.gz
u-boot-imx-879cf26130c72bcb1ed0951f4f252d22cd1bf71f.tar.bz2
FEC: Use proper accessor to read register in debug call
Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Cc: Ben Warren <biggerbadderben@gmail.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Wolfgang Denk <wd@denx.de> Cc: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/fec_mxc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
index ab90afa..82fe1e4 100644
--- a/drivers/net/fec_mxc.c
+++ b/drivers/net/fec_mxc.c
@@ -117,7 +117,7 @@ static void fec_mii_setspeed(struct fec_priv *fec)
writel((((imx_get_fecclk() / 1000000) + 2) / 5) << 1,
&fec->eth->mii_speed);
debug("fec_init: mii_speed %#lx\n",
- fec->eth->mii_speed);
+ readl(&fec->eth->mii_speed));
}
static int fec_miiphy_write(const char *dev, uint8_t phyAddr, uint8_t regAddr,
uint16_t data)