mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-25 05:04:23 +08:00
Moved initialization of IXP4XX_NPE Ethernet controller to cpu_eth_init()
Also, removed the driver initialization from net/eth.c Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
parent
f2a7806fc2
commit
cc94074eca
@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
|
#include <netdev.h>
|
||||||
#include <asm/arch/ixp425.h>
|
#include <asm/arch/ixp425.h>
|
||||||
|
|
||||||
ulong loops_per_jiffy;
|
ulong loops_per_jiffy;
|
||||||
@ -215,3 +216,11 @@ ulong bootcount_load (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_BOOTCOUNT_LIMIT */
|
#endif /* CONFIG_BOOTCOUNT_LIMIT */
|
||||||
|
|
||||||
|
int cpu_eth_init(bd_t *bis)
|
||||||
|
{
|
||||||
|
#ifdef CONFIG_IXP4XX_NPE
|
||||||
|
npe_initialize(bis);
|
||||||
|
#endif
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
@ -55,6 +55,7 @@ int mcffec_initialize(bd_t *bis);
|
|||||||
int mpc512x_fec_initialize(bd_t *bis);
|
int mpc512x_fec_initialize(bd_t *bis);
|
||||||
int mpc5xxx_fec_initialize(bd_t *bis);
|
int mpc5xxx_fec_initialize(bd_t *bis);
|
||||||
int natsemi_initialize(bd_t *bis);
|
int natsemi_initialize(bd_t *bis);
|
||||||
|
int npe_initialize(bd_t *bis);
|
||||||
int ns8382x_initialize(bd_t *bis);
|
int ns8382x_initialize(bd_t *bis);
|
||||||
int pcnet_initialize(bd_t *bis);
|
int pcnet_initialize(bd_t *bis);
|
||||||
int plb2800_eth_initialize(bd_t *bis);
|
int plb2800_eth_initialize(bd_t *bis);
|
||||||
|
@ -46,7 +46,6 @@ extern int mv6436x_eth_initialize(bd_t *);
|
|||||||
extern int mv6446x_eth_initialize(bd_t *);
|
extern int mv6446x_eth_initialize(bd_t *);
|
||||||
extern int ppc_4xx_eth_initialize(bd_t *);
|
extern int ppc_4xx_eth_initialize(bd_t *);
|
||||||
extern int scc_initialize(bd_t*);
|
extern int scc_initialize(bd_t*);
|
||||||
extern int npe_initialize(bd_t *);
|
|
||||||
extern int uec_initialize(int);
|
extern int uec_initialize(int);
|
||||||
|
|
||||||
#ifdef CONFIG_API
|
#ifdef CONFIG_API
|
||||||
@ -192,9 +191,6 @@ int eth_initialize(bd_t *bis)
|
|||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_AU1X00)
|
#if defined(CONFIG_AU1X00)
|
||||||
au1x00_enet_initialize(bis);
|
au1x00_enet_initialize(bis);
|
||||||
#endif
|
|
||||||
#if defined(CONFIG_IXP4XX_NPE)
|
|
||||||
npe_initialize(bis);
|
|
||||||
#endif
|
#endif
|
||||||
if (!eth_devices) {
|
if (!eth_devices) {
|
||||||
puts ("No ethernet found.\n");
|
puts ("No ethernet found.\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user