summaryrefslogtreecommitdiff
path: root/drivers/net/mxc_fec.c
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2010-01-26 20:18:22 +0800
committerTerry Lv <r65388@freescale.com>2010-01-27 13:29:28 +0800
commit3de15e03d89eeda18e665d270c6e3abf65c94d1d (patch)
treebcd1cb6bc3bc677cd148ee2cfe75519b90166c00 /drivers/net/mxc_fec.c
parentc77b09d0ede28f2d9ab940ed15bd16bdafb7ea26 (diff)
downloadu-boot-imx-3de15e03d89eeda18e665d270c6e3abf65c94d1d.zip
u-boot-imx-3de15e03d89eeda18e665d270c6e3abf65c94d1d.tar.gz
u-boot-imx-3de15e03d89eeda18e665d270c6e3abf65c94d1d.tar.bz2
ENGR00120476: Add fuse support for mx51
Add fuse support for mx51. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'drivers/net/mxc_fec.c')
-rw-r--r--drivers/net/mxc_fec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/mxc_fec.c b/drivers/net/mxc_fec.c
index 8aa32c7..c3e813d 100644
--- a/drivers/net/mxc_fec.c
+++ b/drivers/net/mxc_fec.c
@@ -729,6 +729,10 @@ void mxc_fec_set_mac_from_env(char *mac_addr)
int i;
eth_parse_enetaddr(mac_addr, ea);
+ if (!is_valid_ether_addr(ea)) {
+ printf("Error: invalid FEC MAC address!\n");
+ return;
+ }
for (i = 0; i < sizeof(fec_info) / sizeof(fec_info[0]); i++) {
fecp = (fec_t *)(fec_info[i].iobase);