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/leon3/cpu.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cpu/leon3') diff --git a/cpu/leon3/cpu.c b/cpu/leon3/cpu.c index 306a21004..1725fdb09 100644 --- a/cpu/leon3/cpu.c +++ b/cpu/leon3/cpu.c @@ -65,3 +65,11 @@ u64 flash_read64(void *addr) } /* ------------------------------------------------------------------------- */ +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