diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2011-09-16 01:13:47 +0200 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-09-30 22:01:01 +0200 |
commit | 9e27e9dca14a3bca74a5dcc87231769bc6a7117f (patch) | |
tree | f4fe8829171ff3c74cb0b5e95fb9c2f35a3bf376 /include | |
parent | d133b881b9ed24c416cd1f2d7c147eb42e7956cd (diff) | |
download | u-boot-imx-9e27e9dca14a3bca74a5dcc87231769bc6a7117f.zip u-boot-imx-9e27e9dca14a3bca74a5dcc87231769bc6a7117f.tar.gz u-boot-imx-9e27e9dca14a3bca74a5dcc87231769bc6a7117f.tar.bz2 |
FEC: Allow multiple FECes
This patch allows user to register multiple FEC controllers. To preserve
compatibility with older boards, the mxcfec_register() call is still in place.
To use multiple controllers, new macro is in place, the mxcfec_register_multi(),
which takes more arguments. The syntax is:
mxcfec_register_multi(bd, FEC ID, FEC PHY ID on the MII bus, base address);
To disable the fecmxc_register() compatibility stuff, define the macro
CONFIG_FEC_MXC_MULTI. This will remove the requirement for defining IMX_FEC_BASE
and CONFIG_FEC_MXC_PHYADDR.
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Ben Warren <biggerbadderben@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/netdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/netdev.h b/include/netdev.h index 5c5941c..e979cbd 100644 --- a/include/netdev.h +++ b/include/netdev.h @@ -61,8 +61,8 @@ int ep93xx_eth_initialize(u8 dev_num, int base_addr); int eth_3com_initialize (bd_t * bis); int ethoc_initialize(u8 dev_num, int base_addr); int fec_initialize (bd_t *bis); -int fecmxc_initialize (bd_t *bis); int fecmxc_initialize(bd_t *bis); +int fecmxc_initialize_multi(bd_t *bis, int dev_id, int phy_id, uint32_t addr); int ftgmac100_initialize(bd_t *bits); int ftmac100_initialize(bd_t *bits); int greth_initialize(bd_t *bis); |