mirror of
https://xff.cz/git/u-boot/
synced 2025-10-15 06:51:56 +02:00
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 <biggerbadderben@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user