diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2011-09-11 18:05:33 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-09-30 22:01:01 +0200 |
commit | 392b850233b7743af9711d576c22564fe5a1d0c3 (patch) | |
tree | 8d9994d35472998cd251b61ae4aa86e7b60632eb /drivers | |
parent | a50a90c90e723a5d6152f0046db72fc598a73abe (diff) | |
download | u-boot-imx-392b850233b7743af9711d576c22564fe5a1d0c3.zip u-boot-imx-392b850233b7743af9711d576c22564fe5a1d0c3.tar.gz u-boot-imx-392b850233b7743af9711d576c22564fe5a1d0c3.tar.bz2 |
FEC: Allow selection of MII mode via CONFIG_FEC_XCV_TYPE
The default is MII100, which was hardcoded previously in the driver.
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')
-rw-r--r-- | drivers/net/fec_mxc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 32854fb..61b80b2 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -38,6 +38,10 @@ DECLARE_GLOBAL_DATA_PTR; #error "CONFIG_MII has to be defined!" #endif +#ifndef CONFIG_FEC_XCV_TYPE +#define CONFIG_FEC_XCV_TYPE MII100 +#endif + #undef DEBUG struct nbuf { @@ -711,7 +715,7 @@ static int fec_probe(bd_t *bd) fec->eth = (struct ethernet_regs *)IMX_FEC_BASE; fec->bd = bd; - fec->xcv_type = MII100; + fec->xcv_type = CONFIG_FEC_XCV_TYPE; /* Reset chip. */ writel(readl(&fec->eth->ecntrl) | FEC_ECNTRL_RESET, &fec->eth->ecntrl); |