diff options
Diffstat (limited to 'cpu/arm926ejs/mx25/generic.c')
-rw-r--r-- | cpu/arm926ejs/mx25/generic.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/cpu/arm926ejs/mx25/generic.c b/cpu/arm926ejs/mx25/generic.c index a47d796..5155f9a 100644 --- a/cpu/arm926ejs/mx25/generic.c +++ b/cpu/arm926ejs/mx25/generic.c @@ -112,6 +112,13 @@ int print_cpuinfo(void) mx25_dump_clocks(); return 0; } +#endif + +#if defined(CONFIG_MXC_FEC) +extern int mxc_fec_initialize(bd_t *bis); +extern void mxc_fec_set_mac_from_env(char *mac_addr); +#endif + /* * Initializes on-chip ethernet controllers. * to override, implement board_eth_init() @@ -119,16 +126,17 @@ int print_cpuinfo(void) int cpu_eth_init(bd_t *bis) { int rc = -ENODEV; - char *env = NULL; #if defined(CONFIG_MXC_FEC) + char *env = NULL; + rc = mxc_fec_initialize(bis); -#endif env = getenv("fec_addr"); if (env) mxc_fec_set_mac_from_env(env); +#endif return rc; } -#endif + |