diff options
author | Ben Warren <biggerbadderben@gmail.com> | 2008-09-05 01:55:22 -0400 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2008-11-09 21:38:02 -0800 |
commit | cc94074ecac1885d18ddb683eb934b3c0268aa5b (patch) | |
tree | c0a836f88c95358e0154702b7037b7a11df4b29e /cpu/ixp | |
parent | f2a7806fc23e82d30c8548911369e0c530607354 (diff) | |
download | u-boot-cc94074ecac1885d18ddb683eb934b3c0268aa5b.tar.gz u-boot-cc94074ecac1885d18ddb683eb934b3c0268aa5b.tar.bz2 u-boot-cc94074ecac1885d18ddb683eb934b3c0268aa5b.zip |
Moved initialization of IXP4XX_NPE Ethernet controller to cpu_eth_init()
Also, removed the driver initialization from net/eth.c
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'cpu/ixp')
-rw-r--r-- | cpu/ixp/cpu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpu/ixp/cpu.c b/cpu/ixp/cpu.c index 402188e308..27872fb784 100644 --- a/cpu/ixp/cpu.c +++ b/cpu/ixp/cpu.c @@ -32,6 +32,7 @@ #include <common.h> #include <command.h> +#include <netdev.h> #include <asm/arch/ixp425.h> ulong loops_per_jiffy; @@ -215,3 +216,11 @@ ulong bootcount_load (void) } #endif /* CONFIG_BOOTCOUNT_LIMIT */ + +int cpu_eth_init(bd_t *bis) +{ +#ifdef CONFIG_IXP4XX_NPE + npe_initialize(bis); +#endif + return 0; +} |