diff options
| author | wdenk <wdenk> | 2003-01-17 16:27:01 +0000 | 
|---|---|---|
| committer | wdenk <wdenk> | 2003-01-17 16:27:01 +0000 | 
| commit | aacf9a49aa1a74d46726fbaee2b8e87e1dad6956 (patch) | |
| tree | 422615fff8b285b857e7c31fd26af5397d0c4ce4 /include/net.h | |
| parent | 608c91460b37fd9fe0088a0ce813a443f116a8d5 (diff) | |
| download | olio-uboot-2014.01-aacf9a49aa1a74d46726fbaee2b8e87e1dad6956.tar.xz olio-uboot-2014.01-aacf9a49aa1a74d46726fbaee2b8e87e1dad6956.zip | |
* Add dual ethernet support on PM826
* Add support for LXT971 PHY on PM826
* Patch by Tord Andersson, 16 Jan 2003:
  Fix flash sector count for TQM8xxL
* Fix I2C EEPROM problem on ICU862 board (would only write the first
  16 bytes out of each 32 byte block)
Diffstat (limited to 'include/net.h')
| -rw-r--r-- | include/net.h | 24 | 
1 files changed, 24 insertions, 0 deletions
| diff --git a/include/net.h b/include/net.h index 396f36e6d..b4106fe5e 100644 --- a/include/net.h +++ b/include/net.h @@ -18,6 +18,30 @@  #define CONFIG_NET_MULTI  #endif  #endif + +#if !defined(CONFIG_NET_MULTI) && defined(CONFIG_8260) +#include <config.h> +#if defined(CONFIG_ETHER_ON_FCC) +#if defined(CONFIG_ETHER_ON_SCC) +#error "Ethernet not correctly defined" +#endif /* CONFIG_ETHER_ON_SCC */ +#define CONFIG_NET_MULTI +#if (CONFIG_ETHER_INDEX == 1) +#define	CONFIG_ETHER_ON_FCC1 +# define CFG_CMXFCR_MASK1	CFG_CMXFCR_MASK +# define CFG_CMXFCR_VALUE1	CFG_CMXFCR_VALUE +#elif (CONFIG_ETHER_INDEX == 2) +#define	CONFIG_ETHER_ON_FCC2 +# define CFG_CMXFCR_MASK2	CFG_CMXFCR_MASK +# define CFG_CMXFCR_VALUE2	CFG_CMXFCR_VALUE +#elif (CONFIG_ETHER_INDEX == 3) +#define	CONFIG_ETHER_ON_FCC3 +# define CFG_CMXFCR_MASK3	CFG_CMXFCR_MASK +# define CFG_CMXFCR_VALUE3	CFG_CMXFCR_VALUE +#endif /* CONFIG_ETHER_INDEX */ +#endif /* CONFIG_ETHER_ON_FCC */ +#endif /* !CONFIG_NET_MULTI && CONFIG_8260 */ +  #include <asm/byteorder.h>	/* for nton* / ntoh* stuff */ |