summaryrefslogtreecommitdiff
path: root/cpu/mpc8xx
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-10-08 22:14:02 +0000
committerwdenk <wdenk>2003-10-08 22:14:02 +0000
commitef1464cc01cf9dcab52396283bf597e609caa450 (patch)
tree8425585ca09e0fb257c0648c02a7bc7848616807 /cpu/mpc8xx
parentd9a405aaf62cc8204f7300eb94713b39df793f04 (diff)
* Patch by Anders Larsen, 18 Sep 2003:
allow mkimage to build and run on Cygwin-hosted systems * Patch by Frank Müller, 18 Sep 2003: use bi_intfreq instead of bi_busfreq to compute fec_mii_speed in cpu/mpc8xx/fec.c * Patch by Pantelis Antoniou, 16 Sep 2003: add tool to compute fileds in the PLPRCR register for MPC86x
Diffstat (limited to 'cpu/mpc8xx')
-rw-r--r--cpu/mpc8xx/fec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/mpc8xx/fec.c b/cpu/mpc8xx/fec.c
index 8ac78429283..6b579c94d6c 100644
--- a/cpu/mpc8xx/fec.c
+++ b/cpu/mpc8xx/fec.c
@@ -348,7 +348,7 @@ static int fec_init(struct eth_device* dev, bd_t * bd)
* This MDC frequency is equal to system clock / (2 * MII_SPEED).
* Then MII_SPEED = system_clock / 2 * 2,5 Mhz.
*/
- fecp->fec_mii_speed = ((bd->bi_busfreq + 4999999) / 5000000) << 1;
+ fecp->fec_mii_speed = ((bd->bi_intfreq + 4999999) / 5000000) << 1;
#if !defined(CONFIG_ICU862) && !defined(CONFIG_IAD210)
/* Configure all of port D for MII.
@@ -612,7 +612,7 @@ void mii_init (void)
* This MDC frequency is equal to system clock / (2 * MII_SPEED).
* Then MII_SPEED = system_clock / 2 * 2,5 Mhz.
*/
- fecp->fec_mii_speed = ((bd->bi_busfreq + 4999999) / 5000000) << 1;
+ fecp->fec_mii_speed = ((bd->bi_intfreq + 4999999) / 5000000) << 1;
#if !defined(CONFIG_ICU862) && !defined(CONFIG_IAD210)
/* Configure all of port D for MII.