microblaze: Wire up axi_ethernet driver initialization
authorMichal Simek <monstr@monstr.eu>
Wed, 31 Aug 2011 09:51:50 +0000 (11:51 +0200)
committerMichal Simek <monstr@monstr.eu>
Mon, 24 Oct 2011 05:50:21 +0000 (07:50 +0200)
Initialize axi_ethernet driver.

Signed-off-by: Michal Simek <monstr@monstr.eu>
board/xilinx/microblaze-generic/microblaze-generic.c
include/configs/microblaze-generic.h

index 9b2952f04eeeac01e4ef96cfe77e52f7d754f59c..c4c13a668277611e6d70712c18a92bda104eeacf 100644 (file)
@@ -72,6 +72,12 @@ int fsl_init2 (void) {
 int board_eth_init(bd_t *bis)
 {
        int ret = 0;
+
+#ifdef CONFIG_XILINX_AXIEMAC
+       ret |= xilinx_axiemac_initialize(bis, XILINX_AXIEMAC_BASEADDR,
+                                               XILINX_AXIDMA_BASEADDR);
+#endif
+
 #ifdef CONFIG_XILINX_EMACLITE
        u32 txpp = 0;
        u32 rxpp = 0;
index 09ff7c4fb936cae7beffb3a8d89c872082f1c4c9..6b3fd7600371cdbc66f428b3d53c7f3f915a5bcf 100644 (file)
 # define CONFIG_XILINX_LL_TEMAC                1
 # define CONFIG_SYS_ENET
 #endif
+#if defined(XILINX_AXIEMAC_BASEADDR)
+# define CONFIG_XILINX_AXIEMAC 1
+# define CONFIG_SYS_ENET
+#endif
 
 #undef ET_DEBUG