summaryrefslogtreecommitdiff
path: root/board/m501sk/m501sk.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2010-02-03 20:10:20 +0100
committerWolfgang Denk <wd@denx.de>2010-02-03 20:10:20 +0100
commit05c2f4fe2966daa960017a48a506328d01b0a089 (patch)
treeb16577fabe03a57b0948551b6e4e664da61f17c0 /board/m501sk/m501sk.c
parent5c1a1a3069c194ac6509344e58f8c96779d2d197 (diff)
parentc041e9d212162f6c85cd3b6a40ad6ba9d9292451 (diff)
downloadu-boot-imx-05c2f4fe2966daa960017a48a506328d01b0a089.zip
u-boot-imx-05c2f4fe2966daa960017a48a506328d01b0a089.tar.gz
u-boot-imx-05c2f4fe2966daa960017a48a506328d01b0a089.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-net
Diffstat (limited to 'board/m501sk/m501sk.c')
-rw-r--r--board/m501sk/m501sk.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/board/m501sk/m501sk.c b/board/m501sk/m501sk.c
index 1e6a605..c995768 100644
--- a/board/m501sk/m501sk.c
+++ b/board/m501sk/m501sk.c
@@ -24,8 +24,13 @@
*/
#include <common.h>
+#include <asm/io.h>
+#include <netdev.h>
+#if defined(CONFIG_DRIVER_ETHER)
#include <at91rm9200_net.h>
#include <dm9161.h>
+#endif
+
#include "m501sk.h"
#include "net.h"
@@ -186,4 +191,13 @@ void at91rm9200_GetPhyInterface(AT91PS_PhyOps p_phyops)
}
#endif /* CONFIG_CMD_NET */
#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
#endif /* CONFIG_M501SK */