]> git.sur5r.net Git - u-boot/commitdiff
sbc8548: enable use of PCI network cards
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 18 Sep 2009 23:08:44 +0000 (19:08 -0400)
committerTom Rix <Tom.Rix@windriver.com>
Sat, 3 Oct 2009 14:04:35 +0000 (09:04 -0500)
Create a board_eth_init to allow a place to hook in
the PCI ethernet init after all the eTSEC are up
and configured.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
board/sbc8548/sbc8548.c

index 4192eea8c3311bb3c05dbbd53d412f86b3dfc21f..fc78a7c6a155a68631dfc3a20bd0480c228582eb 100644 (file)
@@ -33,6 +33,8 @@
 #include <asm/fsl_pci.h>
 #include <asm/fsl_ddr_sdram.h>
 #include <spd_sdram.h>
+#include <netdev.h>
+#include <tsec.h>
 #include <miiphy.h>
 #include <libfdt.h>
 #include <fdt_support.h>
@@ -491,6 +493,13 @@ pci_init_board(void)
 
 }
 
+int board_eth_init(bd_t *bis)
+{
+       tsec_standard_init(bis);
+       pci_eth_init(bis);
+       return 0;       /* otherwise cpu_eth_init gets run */
+}
+
 int last_stage_init(void)
 {
        return 0;