diff options
author | Ilya Yanok <yanok@emcraft.com> | 2009-07-21 19:32:21 +0400 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2009-07-22 22:59:07 -0700 |
commit | 0b23fb368d08c9669fac647971ff249c3f9fee8f (patch) | |
tree | a35d0871d5adf31c35ac437616af57d4c8120ba3 /cpu/arm926ejs/mx27/generic.c | |
parent | 0544c63681d2ea3607faf374e9c56f101e365b42 (diff) | |
download | u-boot-imx-0b23fb368d08c9669fac647971ff249c3f9fee8f.zip u-boot-imx-0b23fb368d08c9669fac647971ff249c3f9fee8f.tar.gz u-boot-imx-0b23fb368d08c9669fac647971ff249c3f9fee8f.tar.bz2 |
fec_mxc: driver for FEC ethernet controller on i.MX27
Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'cpu/arm926ejs/mx27/generic.c')
-rw-r--r-- | cpu/arm926ejs/mx27/generic.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 <common.h> #include <div64.h> +#include <netdev.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> @@ -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; |