]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/atmel/at91rm9200ek/at91rm9200ek.c
new at91_emac network driver (NET_MULTI api)
[karo-tx-uboot.git] / board / atmel / at91rm9200ek / at91rm9200ek.c
index ea684e949d080085c8456e14fd4f6c8f4d61e7e9..570a09a0741b2ed7c1cd2d4e88c1f7bb663979d7 100644 (file)
  */
 
 #include <common.h>
+#include <exports.h>
+#include <netdev.h>
 #include <asm/arch/AT91RM9200.h>
+#include <asm/io.h>
+#if defined(CONFIG_DRIVER_ETHER)
 #include <at91rm9200_net.h>
 #include <dm9161.h>
+#endif
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -84,3 +89,12 @@ void at91rm9200_GetPhyInterface(AT91PS_PhyOps p_phyops)
        p_phyops->AutoNegotiate = dm9161_AutoNegotiate;
 }
 #endif
+
+#ifdef CONFIG_DRIVER_AT91EMAC
+int board_eth_init(bd_t *bis)
+{
+       int rc = 0;
+       rc = at91emac_register(bis, 0);
+       return rc;
+}
+#endif