summaryrefslogtreecommitdiffstats
path: root/board/freescale/mpc837xemds/mpc837xemds.c
diff options
context:
space:
mode:
authorAndy Fleming <afleming@freescale.com>2011-04-08 02:10:54 -0500
committerAndy Fleming <afleming@freescale.com>2011-04-20 15:09:34 -0500
commit063c12633d5ad74d52152d9c358e715475e17629 (patch)
tree872f1bfe0cd0eb14eb38bdb51e1351c064d98dc4 /board/freescale/mpc837xemds/mpc837xemds.c
parent9082eeac5de1335d663016668c9b89c290f5c79b (diff)
downloadblackbird-obmc-uboot-063c12633d5ad74d52152d9c358e715475e17629.tar.gz
blackbird-obmc-uboot-063c12633d5ad74d52152d9c358e715475e17629.zip
tsec: Convert tsec to use PHY Lib
This converts tsec to use the new PHY Lib. All of the old PHY support is ripped out. The old MDIO driver is split off, and placed in fsl_mdio.c. The initialization is modified to initialize the MDIO driver as well. The powerpc config file is modified to configure PHYLIB if TSEC_ENET is configured. Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'board/freescale/mpc837xemds/mpc837xemds.c')
-rw-r--r--board/freescale/mpc837xemds/mpc837xemds.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/freescale/mpc837xemds/mpc837xemds.c b/board/freescale/mpc837xemds/mpc837xemds.c
index 51dd692c2e..ee1ebd98ba 100644
--- a/board/freescale/mpc837xemds/mpc837xemds.c
+++ b/board/freescale/mpc837xemds/mpc837xemds.c
@@ -21,6 +21,7 @@
#include <libfdt.h>
#include <fdt_support.h>
#include <fsl_esdhc.h>
+#include <fsl_mdio.h>
#include "pci.h"
#include "../common/pq-mds-pib.h"
@@ -86,6 +87,7 @@ int board_mmc_init(bd_t *bd)
#if defined(CONFIG_TSEC1) || defined(CONFIG_TSEC2)
int board_eth_init(bd_t *bd)
{
+ struct fsl_pq_mdio_info mdio_info;
struct tsec_info_struct tsec_info[2];
struct immap __iomem *im = (struct immap __iomem *)CONFIG_SYS_IMMR;
u32 rcwh = in_be32(&im->reset.rcwh);
@@ -131,6 +133,11 @@ int board_eth_init(bd_t *bd)
}
num++;
#endif
+
+ mdio_info.regs = (struct tsec_mii_mng *)CONFIG_SYS_MDIO_BASE_ADDR;
+ mdio_info.name = DEFAULT_MII_NAME;
+ fsl_pq_mdio_init(bd, &mdio_info);
+
return tsec_eth_init(bd, tsec_info, num);
}
OpenPOWER on IntegriCloud