diff options
author | Ben Warren <biggerbadderben@gmail.com> | 2008-08-31 21:16:59 +0400 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2008-09-03 08:18:17 +0400 |
commit | 8218bd2aa68820b878a8413493ae17fd8d21f944 (patch) | |
tree | 31f044f5657a5be7d16918539c69187ea73ca180 /board/incaip/incaip.c | |
parent | 164846eeb25cb2a5ede7ab9371fdca7f4831a055 (diff) | |
download | u-boot-8218bd2aa68820b878a8413493ae17fd8d21f944.tar.xz |
Moved initialization of IncaIP Ethernet controller to board_eth_init
Affected boards:
IncaIP
Removed initialization of the driver from net/eth.c
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'board/incaip/incaip.c')
-rw-r--r-- | board/incaip/incaip.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/incaip/incaip.c b/board/incaip/incaip.c index ac7ad8f292..6fe852cf9e 100644 --- a/board/incaip/incaip.c +++ b/board/incaip/incaip.c @@ -23,6 +23,7 @@ #include <common.h> #include <command.h> +#include <netdev.h> #include <asm/addrspace.h> #include <asm/inca-ip.h> #include <asm/io.h> @@ -116,3 +117,10 @@ int checkboard (void) return 0; } + +#if defined(CONFIG_INCA_IP_SWITCH) +int board_eth_init(bd_t *bis) +{ + return inca_switch_initialize(bis); +} +#endif |