summaryrefslogtreecommitdiff
path: root/drivers/net/fec_mxc.h
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2011-09-16 01:13:47 +0200
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-09-30 22:01:01 +0200
commit9e27e9dca14a3bca74a5dcc87231769bc6a7117f (patch)
treef4fe8829171ff3c74cb0b5e95fb9c2f35a3bf376 /drivers/net/fec_mxc.h
parentd133b881b9ed24c416cd1f2d7c147eb42e7956cd (diff)
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 'drivers/net/fec_mxc.h')
-rw-r--r--drivers/net/fec_mxc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/fec_mxc.h b/drivers/net/fec_mxc.h
index f16f9dbbb7..e436c22fa3 100644
--- a/drivers/net/fec_mxc.h
+++ b/drivers/net/fec_mxc.h
@@ -275,6 +275,8 @@ struct fec_priv {
bd_t *bd;
void *rdb_ptr;
void *base_ptr;
+ int dev_id;
+ int phy_id;
};
/**