From 0b23fb368d08c9669fac647971ff249c3f9fee8f Mon Sep 17 00:00:00 2001 From: Ilya Yanok Date: Tue, 21 Jul 2009 19:32:21 +0400 Subject: fec_mxc: driver for FEC ethernet controller on i.MX27 Signed-off-by: Ilya Yanok Signed-off-by: Ben Warren --- cpu/arm926ejs/mx27/generic.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cpu/arm926ejs/mx27/generic.c') diff --git a/cpu/arm926ejs/mx27/generic.c b/cpu/arm926ejs/mx27/generic.c index bcf7899..47fa4b4 100644 --- a/cpu/arm926ejs/mx27/generic.c +++ b/cpu/arm926ejs/mx27/generic.c @@ -20,6 +20,7 @@ #include #include +#include #include #include @@ -159,6 +160,15 @@ int print_cpuinfo (void) } #endif +int cpu_eth_init(bd_t *bis) +{ +#if defined(CONFIG_FEC_MXC) + return fecmxc_initialize(bis); +#else + return 0; +#endif +} + void imx_gpio_mode(int gpio_mode) { struct gpio_regs *regs = (struct gpio_regs *)IMX_GPIO_BASE; -- cgit v1.1