diff options
author | wdenk <wdenk> | 2003-09-05 23:19:14 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-09-05 23:19:14 +0000 |
commit | 7152b1d0b3f8beec8c297d64664e41b4c4ef610a (patch) | |
tree | 00df503a08239cd4d02840a738bc835d2ac6fc9e /cpu/mpc5xxx/fec.c | |
parent | 4d816774f120e5f0278197eb9de32a6e318cce04 (diff) | |
download | u-boot-imx-7152b1d0b3f8beec8c297d64664e41b4c4ef610a.zip u-boot-imx-7152b1d0b3f8beec8c297d64664e41b4c4ef610a.tar.gz u-boot-imx-7152b1d0b3f8beec8c297d64664e41b4c4ef610a.tar.bz2 |
* Add support for SK98xx driver
* Add PCI support for SL8245 board
* Support IceCube board configurations with 1 x AMD AM29LV065 (8 MB)
or 1 x AM29LV652 (two LV065 in one chip = 16 MB);
Run IPB at 133 Mhz; adjust the MII clock frequency accordingly
* Set BRG_CLK on PM825/826 to 64MHz (VCO_OUT / 4, instead of 16 MHz)
to allow for more accurate baudrate settings
(error now 0.7% at 115 kbps, instead of 3.5% before)
* Patch by Andreas Mohr, 4 Sep 2003:
Fix a lot of spelling errors
Diffstat (limited to 'cpu/mpc5xxx/fec.c')
-rw-r--r-- | cpu/mpc5xxx/fec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpu/mpc5xxx/fec.c b/cpu/mpc5xxx/fec.c index 557355f..06dd56f 100644 --- a/cpu/mpc5xxx/fec.c +++ b/cpu/mpc5xxx/fec.c @@ -208,6 +208,7 @@ static void mpc5xxx_fec_set_hwaddr(mpc5xxx_fec_priv *fec, char *mac) /********************************************************************/ static int mpc5xxx_fec_init(struct eth_device *dev, bd_t * bis) { + DECLARE_GLOBAL_DATA_PTR; mpc5xxx_fec_priv *fec = (mpc5xxx_fec_priv *)dev->priv; struct mpc5xxx_sdma *sdma = (struct mpc5xxx_sdma *)MPC5XXX_SDMA; const uint8 phyAddr = 0; /* Only one PHY */ @@ -269,10 +270,10 @@ static int mpc5xxx_fec_init(struct eth_device *dev, bd_t * bis) fec->eth->x_cntrl = 0x00000004; /* full-duplex, heartbeat disabled */ /* - * Set MII_SPEED = (1/(mii_speed * 2)) * System Clock(25Mhz) + * Set MII_SPEED = (1/(mii_speed * 2)) * System Clock * and do not drop the Preamble. */ - fec->eth->mii_speed = (0x5 << 1); /* No MII for 7-wire mode */ + fec->eth->mii_speed = (((gd->ipb_clk >> 20) / 5) << 1); /* No MII for 7-wire mode */ } /* |