diff options
| author | Stefan Roese <sr@denx.de> | 2007-08-15 14:51:27 +0200 | 
|---|---|---|
| committer | Stefan Roese <sr@denx.de> | 2007-08-15 14:51:27 +0200 | 
| commit | d61ea14885631e58a25feaa81ee82eb464c62d6a (patch) | |
| tree | 27927975039d0a15e6c6d4dfe8f765a76a12820a /post/cpu/ppc4xx/ether.c | |
| parent | 3ba4c2d68f6541db4677b4aea12071f56e6ff6e6 (diff) | |
| parent | 594e79838ce5078a90d0c27abb2b2d61d5f8e8a7 (diff) | |
| download | olio-uboot-2014.01-d61ea14885631e58a25feaa81ee82eb464c62d6a.tar.xz olio-uboot-2014.01-d61ea14885631e58a25feaa81ee82eb464c62d6a.zip | |
Merge with git://www.denx.de/git/u-boot.git
Diffstat (limited to 'post/cpu/ppc4xx/ether.c')
| -rw-r--r-- | post/cpu/ppc4xx/ether.c | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/post/cpu/ppc4xx/ether.c b/post/cpu/ppc4xx/ether.c index 391c815d7..ab23ca5a3 100644 --- a/post/cpu/ppc4xx/ether.c +++ b/post/cpu/ppc4xx/ether.c @@ -68,10 +68,10 @@ static char *rx_buf;  static void ether_post_init (int devnum, int hw_addr)  {  	int i; -	unsigned mode_reg;  #if defined(CONFIG_440GX) || \      defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \      defined(CONFIG_440SP) || defined(CONFIG_440SPE) +	unsigned mode_reg;  	sys_info_t sysinfo;  #endif  #if defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || defined(CONFIG_440SPE) @@ -185,10 +185,17 @@ static void ether_post_init (int devnum, int hw_addr)  	mtdcr (malrxcasr, (MAL_TXRX_CASR >> devnum));  	/* set internal loopback mode */ +#ifdef CFG_POST_ETHER_EXT_LOOPBACK +	out32 (EMAC_M1 + hw_addr, EMAC_M1_FDE | 0 | +	       EMAC_M1_RFS_4K | EMAC_M1_TX_FIFO_2K | +	       EMAC_M1_MF_100MBPS | EMAC_M1_IST | +	       in32 (EMAC_M1)); +#else  	out32 (EMAC_M1 + hw_addr, EMAC_M1_FDE | EMAC_M1_ILE |  	       EMAC_M1_RFS_4K | EMAC_M1_TX_FIFO_2K |  	       EMAC_M1_MF_100MBPS | EMAC_M1_IST |  	       in32 (EMAC_M1)); +#endif  	/* set transmit enable & receive enable */  	out32 (EMAC_M0 + hw_addr, EMAC_M0_TXE | EMAC_M0_RXE); |