diff options
author | Heiko Schocher <hs@denx.de> | 2008-01-11 01:12:08 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-01-12 00:33:26 +0100 |
commit | ac9db066b26935f31bff15c98168b19faeb603f3 (patch) | |
tree | 0d2a52be2559a64e02c9c43ffa693d69a4493ec7 /cpu/mpc8260/ether_scc.c | |
parent | b423d055cc2e13c4ef1f0389c3fa2988d0eed818 (diff) | |
download | u-boot-imx-ac9db066b26935f31bff15c98168b19faeb603f3.zip u-boot-imx-ac9db066b26935f31bff15c98168b19faeb603f3.tar.gz u-boot-imx-ac9db066b26935f31bff15c98168b19faeb603f3.tar.bz2 |
Added support for the mgcoge board from keymile.
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'cpu/mpc8260/ether_scc.c')
-rw-r--r-- | cpu/mpc8260/ether_scc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cpu/mpc8260/ether_scc.c b/cpu/mpc8260/ether_scc.c index e56839d..633d053 100644 --- a/cpu/mpc8260/ether_scc.c +++ b/cpu/mpc8260/ether_scc.c @@ -77,7 +77,9 @@ #define TX_BUF_CNT 2 -#define TOUT_LOOP 1000000 +#if !defined(CFG_SCC_TOUT_LOOP) + #define CFG_SCC_TOUT_LOOP 1000000 +#endif static char txbuf[TX_BUF_CNT][ DBUF_LENGTH ]; @@ -109,7 +111,7 @@ int eth_send(volatile void *packet, int length) } for(i=0; rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_READY; i++) { - if (i >= TOUT_LOOP) { + if (i >= CFG_SCC_TOUT_LOOP) { puts ("scc: tx buffer not ready\n"); goto out; } @@ -121,7 +123,7 @@ int eth_send(volatile void *packet, int length) BD_ENET_TX_WRAP); for(i=0; rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_READY; i++) { - if (i >= TOUT_LOOP) { + if (i >= CFG_SCC_TOUT_LOOP) { puts ("scc: tx error\n"); goto out; } @@ -262,7 +264,6 @@ int eth_init(bd_t *bis) pram_ptr->sen_taddrm = 0x0; /* Tmp Address (unused) */ pram_ptr->sen_taddrl = 0x0; /* Tmp Address (LSB) (unused) */ - /* 24.21 - (19): Initialize RxBD */ for (i = 0; i < PKTBUFSRX; i++) { |