From fc363ce35408f348cacced68505f3747a53e3d7c Mon Sep 17 00:00:00 2001 From: Ben Warren Date: Wed, 9 Jul 2008 01:04:19 -0700 Subject: Moved initialization of GRETH Ethernet driver to CPU directory Added a cpu_eth_init() function to leon2/leon3 CPU directories and removed code from net/eth.c Signed-off-by: Ben Warren --- cpu/leon2/cpu.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cpu/leon2') diff --git a/cpu/leon2/cpu.c b/cpu/leon2/cpu.c index 1c1e24b16..5de1c521a 100644 --- a/cpu/leon2/cpu.c +++ b/cpu/leon2/cpu.c @@ -56,3 +56,12 @@ int do_reset(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) } /* ------------------------------------------------------------------------- */ + +extern int greth_initialize(bd_t *bis); + +#ifdef CONFIG_GRETH +int cpu_eth_init(bd_t *bis) +{ + return greth_initialize(bis); +} +#endif -- cgit v1.2.3