summaryrefslogtreecommitdiffstats
path: root/board/freescale/corenet_ds/corenet_ds.c
diff options
context:
space:
mode:
authorAndy Fleming <afleming@freescale.com>2010-10-20 15:35:16 -0500
committerKumar Gala <galak@kernel.crashing.org>2011-09-29 19:01:05 -0500
commit2915609a91bac614d1fe881f928359028cd47e0f (patch)
tree59c929093d6371b3eee778c4faa933705943720b /board/freescale/corenet_ds/corenet_ds.c
parentc916d7c914665347f057bf1506c02c5ac57e3184 (diff)
downloadtalos-obmc-uboot-2915609a91bac614d1fe881f928359028cd47e0f.tar.gz
talos-obmc-uboot-2915609a91bac614d1fe881f928359028cd47e0f.zip
powerpc/85xx: Add FMan ethernet support to P4080DS
Add support for RGMII, SGMII, and XAUI (10Gb) Ethernet on P4080DS. The board supports add-on cards for SGMII and XAUI functionality. Which slots on the board these cards are in is a function of the SERDES option selected and muxes on the board. Additionally because of the high-configurablity which MDIO bus one is connected to is "selected" via an FPGA register. We create dummy MDIO bus for the phy layer and hide the mux manipulation in this dummy layer. Add fman fdt helper function in board common code it'll be used by several freescale boards that do various muxing of the MDIO signals based on which controller/interface one is trying to talk to. Removed CONFIG_SYS_FMAN_FW as its not used anywhere. Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com> Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/freescale/corenet_ds/corenet_ds.c')
-rw-r--r--board/freescale/corenet_ds/corenet_ds.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/board/freescale/corenet_ds/corenet_ds.c b/board/freescale/corenet_ds/corenet_ds.c
index b1e7823185..a03fdfda2c 100644
--- a/board/freescale/corenet_ds/corenet_ds.c
+++ b/board/freescale/corenet_ds/corenet_ds.c
@@ -32,10 +32,12 @@
#include <asm/fsl_serdes.h>
#include <asm/fsl_portals.h>
#include <asm/fsl_liodn.h>
+#include <fm_eth.h>
extern void pci_of_setup(void *blob, bd_t *bd);
#include "../common/ngpixis.h"
+#include "corenet_ds.h"
DECLARE_GLOBAL_DATA_PTR;
@@ -237,9 +239,9 @@ void ft_board_setup(void *blob, bd_t *bd)
fdt_fixup_liodn(blob);
fdt_fixup_dr_usb(blob, bd);
-}
-int board_eth_init(bd_t *bis)
-{
- return pci_eth_init(bis);
+#ifdef CONFIG_SYS_DPAA_FMAN
+ fdt_fixup_fman_ethernet(blob);
+ fdt_fixup_board_enet(blob);
+#endif
}
OpenPOWER on IntegriCloud