Blackfin: ibf-dsp561: enable AX88180 net driver
authorHoan Hoang <hnhoan@i-syst.com>
Mon, 10 May 2010 19:38:55 +0000 (15:38 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 5 Jul 2010 08:18:18 +0000 (04:18 -0400)
Signed-off-by: Hoan Hoang <hnhoan@i-syst.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
board/ibf-dsp561/ibf-dsp561.c
include/configs/ibf-dsp561.h

index b5bebd4a90f0a19ad9610c4e69ec0c44dad2ab0f..d2ac7a502b9422b9881fe0e7b65145583b2ea1ec 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <netdev.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -16,3 +17,10 @@ int checkboard(void)
        printf("       Support: http://www.i-syst.com/\n");
        return 0;
 }
+
+#ifdef CONFIG_DRIVER_AX88180
+int board_eth_init(bd_t *bis)
+{
+       return ax88180_initialize(bis);
+}
+#endif
index 2eef5efa78fe8f46efaeed3967e5ec741ffdad49..5601416fafe0ca7eefbfbcb63ed9322e6470499e 100644 (file)
 #define CONFIG_SYS_MALLOC_LEN  (128 * 1024)
 
 
+/*
+ * Network Settings
+ */
+#define ADI_CMDS_NETWORK       1
+#define CONFIG_NET_MULTI
+#define CONFIG_DRIVER_AX88180  1
+#define AX88180_BASE           0x2c000000
+#define CONFIG_HOSTNAME                ibf-dsp561
+/* Uncomment next line to use fixed MAC address */
+/* #define CONFIG_ETHADDR      02:80:ad:20:31:e8 */
+
+
 /*
  * Flash Settings
  */