diff options
Diffstat (limited to 'cpu/arm1136/mx35/generic.c')
-rw-r--r-- | cpu/arm1136/mx35/generic.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cpu/arm1136/mx35/generic.c b/cpu/arm1136/mx35/generic.c index d6ad6d7..b70c3ea 100644 --- a/cpu/arm1136/mx35/generic.c +++ b/cpu/arm1136/mx35/generic.c @@ -24,6 +24,7 @@ */ #include <common.h> +#include <asm/errno.h> #include <asm/arch/mx35.h> #include "crm_regs.h" @@ -203,3 +204,16 @@ int print_cpuinfo(void) return 0; } #endif + +/* + * Initializes on-chip ethernet controllers. + * to override, implement board_eth_init() + */ +int cpu_eth_init(bd_t *bis) +{ + int rc = -ENODEV; +#if defined(CONFIG_MXC_FEC) + rc = mxc_fec_initialize(bis); +#endif + return rc; +} |