summaryrefslogtreecommitdiff
path: root/cpu/mpc85xx/ether_fcc.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-04-21 21:10:22 +0000
committerwdenk <wdenk>2005-04-21 21:10:22 +0000
commita63109281ad41b0fb489fdcb901171f76bcdbc2c (patch)
treec67b0f3d5c763294f73ab5962db97a4073e517b8 /cpu/mpc85xx/ether_fcc.c
parent7cc1438d433c5c5ee65fcb588a4d70acb117af82 (diff)
downloadu-boot-imx-a63109281ad41b0fb489fdcb901171f76bcdbc2c.zip
u-boot-imx-a63109281ad41b0fb489fdcb901171f76bcdbc2c.tar.gz
u-boot-imx-a63109281ad41b0fb489fdcb901171f76bcdbc2c.tar.bz2
Fix bug in the SDRAM initialization code for canmb, IceCube and
PM520 boards. Fix PHY address for canmb board.
Diffstat (limited to 'cpu/mpc85xx/ether_fcc.c')
-rw-r--r--cpu/mpc85xx/ether_fcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/mpc85xx/ether_fcc.c b/cpu/mpc85xx/ether_fcc.c
index c2f88f8..122ca87 100644
--- a/cpu/mpc85xx/ether_fcc.c
+++ b/cpu/mpc85xx/ether_fcc.c
@@ -157,7 +157,7 @@ static int fec_send(struct eth_device* dev, volatile void *packet, int length)
rtx.txbd[txIdx].cbd_bufaddr = (uint)packet;
rtx.txbd[txIdx].cbd_datlen = length;
rtx.txbd[txIdx].cbd_sc |= (BD_ENET_TX_READY | BD_ENET_TX_LAST | \
- BD_ENET_TX_TC );
+ BD_ENET_TX_TC | BD_ENET_TX_PAD);
for(i=0; rtx.txbd[txIdx].cbd_sc & BD_ENET_TX_READY; i++) {
if (i >= TOUT_LOOP) {
@@ -414,7 +414,7 @@ static int fec_init(struct eth_device* dev, bd_t *bis)
immr->im_cpm.im_cpm_fcc3.gfmr |= FCC_GFMR_ENT | FCC_GFMR_ENR;
}
- return 0;
+ return 1;
}
static void fec_halt(struct eth_device* dev)