mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 22:51:37 +00:00
Moved initialization of FSL_MCDMAFEC Ethernet driver to CPU directory
Added a cpu_eth_init() function to cpu/mcf547x_8x directory and removed code from net/eth.c Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
parent
b5710d9974
commit
b31da88b9c
3 changed files with 10 additions and 5 deletions
|
@ -141,3 +141,12 @@ int watchdog_init(void)
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_HW_WATCHDOG */
|
#endif /* CONFIG_HW_WATCHDOG */
|
||||||
|
|
||||||
|
#if defined(CONFIG_FSLDMAFEC)
|
||||||
|
extern int mcdmafec_initialize(bd_t *bis);
|
||||||
|
|
||||||
|
int cpu_eth_init(bd_t *bis)
|
||||||
|
{
|
||||||
|
return mcdmafec_initialize(bis);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -582,5 +582,5 @@ int mcdmafec_initialize(bd_t * bis)
|
||||||
/* default speed */
|
/* default speed */
|
||||||
bis->bi_ethspeed = 10;
|
bis->bi_ethspeed = 10;
|
||||||
|
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,6 @@ extern int uec_initialize(int);
|
||||||
extern int bfin_EMAC_initialize(bd_t *);
|
extern int bfin_EMAC_initialize(bd_t *);
|
||||||
extern int greth_initialize(bd_t *);
|
extern int greth_initialize(bd_t *);
|
||||||
extern int mcffec_initialize(bd_t*);
|
extern int mcffec_initialize(bd_t*);
|
||||||
extern int mcdmafec_initialize(bd_t*);
|
|
||||||
extern int at91sam9_eth_initialize(bd_t *);
|
extern int at91sam9_eth_initialize(bd_t *);
|
||||||
|
|
||||||
#ifdef CONFIG_API
|
#ifdef CONFIG_API
|
||||||
|
@ -275,9 +274,6 @@ int eth_initialize(bd_t *bis)
|
||||||
#if defined(CONFIG_MCFFEC)
|
#if defined(CONFIG_MCFFEC)
|
||||||
mcffec_initialize(bis);
|
mcffec_initialize(bis);
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_FSLDMAFEC)
|
|
||||||
mcdmafec_initialize(bis);
|
|
||||||
#endif
|
|
||||||
#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
|
#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
|
||||||
defined(CONFIG_AT91SAM9263)
|
defined(CONFIG_AT91SAM9263)
|
||||||
at91sam9_eth_initialize(bis);
|
at91sam9_eth_initialize(bis);
|
||||||
|
|
Loading…
Add table
Reference in a new issue