diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2005-09-04 23:19:41 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2005-09-04 23:19:41 +0200 |
commit | c44ffb9efa9be8b8ae35ccf2b4729d63bdab6dc7 (patch) | |
tree | 3e5d8f241b81bd6222b98591def2cb62b8b80552 /cpu/mpc5xxx/fec.c | |
parent | 80e238c7f08cecdabf4140fa5405a91092667626 (diff) | |
download | u-boot-imx-c44ffb9efa9be8b8ae35ccf2b4729d63bdab6dc7.zip u-boot-imx-c44ffb9efa9be8b8ae35ccf2b4729d63bdab6dc7.tar.gz u-boot-imx-c44ffb9efa9be8b8ae35ccf2b4729d63bdab6dc7.tar.bz2 |
Update MPC5200 FIFO Control settings
(u-boot.habanero.fifo_cntrl.patch from Freescale)
Diffstat (limited to 'cpu/mpc5xxx/fec.c')
-rw-r--r-- | cpu/mpc5xxx/fec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpu/mpc5xxx/fec.c b/cpu/mpc5xxx/fec.c index 2be4ca7..c3d30a0 100644 --- a/cpu/mpc5xxx/fec.c +++ b/cpu/mpc5xxx/fec.c @@ -291,7 +291,8 @@ static int mpc5xxx_fec_init(struct eth_device *dev, bd_t * bis) /* * Set Rx FIFO alarm and granularity value */ - fec->eth->rfifo_cntrl = 0x0c000000; + fec->eth->rfifo_cntrl = 0x0c000000 + | (fec->eth->rfifo_cntrl & ~0x0f000000); fec->eth->rfifo_alarm = 0x0000030c; #if (DEBUG & 0x22) if (fec->eth->rfifo_status & 0x00700000 ) { @@ -302,7 +303,8 @@ static int mpc5xxx_fec_init(struct eth_device *dev, bd_t * bis) /* * Set Tx FIFO granularity value */ - fec->eth->tfifo_cntrl = 0x0c000000; + fec->eth->tfifo_cntrl = 0x0c000000 + | (fec->eth->tfifo_cntrl & ~0x0f000000); #if (DEBUG & 0x2) printf("tfifo_status: 0x%08x\n", fec->eth->tfifo_status); printf("tfifo_alarm: 0x%08x\n", fec->eth->tfifo_alarm); |