X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fkb9202%2Fkb9202.c;h=3164cc5ac44b618d244f11a574391bfe3947ca1f;hb=530135dcacac278798346ad5825c03131ce51772;hp=ec51dca914901c1a0bc8e2bde92f61be66d44a0a;hpb=d87080b721e4f8dca977af7571c5338ae7bb8db7;p=u-boot diff --git a/board/kb9202/kb9202.c b/board/kb9202/kb9202.c index ec51dca914..3164cc5ac4 100644 --- a/board/kb9202/kb9202.c +++ b/board/kb9202/kb9202.c @@ -28,8 +28,12 @@ #include #include +#include +#include +#if defined(CONFIG_DRIVER_ETHER) #include #include +#endif DECLARE_GLOBAL_DATA_PTR; @@ -65,7 +69,7 @@ int dram_init (void) } #ifdef CONFIG_DRIVER_ETHER -#if (CONFIG_COMMANDS & CFG_CMD_NET) +#if defined(CONFIG_CMD_NET) unsigned int lxt972_IsPhyConnected (AT91PS_EMAC p_mac); UCHAR lxt972_GetLinkSpeed (AT91PS_EMAC p_mac); @@ -90,5 +94,14 @@ void at91rm9200_GetPhyInterface(AT91PS_PhyOps p_phyops) p_phyops->AutoNegotiate = lxt972_AutoNegotiate; } -#endif /* CONFIG_COMMANDS & CFG_CMD_NET */ +#endif #endif /* CONFIG_DRIVER_ETHER */ + +#ifdef CONFIG_DRIVER_AT91EMAC +int board_eth_init(bd_t *bis) +{ + int rc = 0; + rc = at91emac_register(bis, 0); + return rc; +} +#endif