public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] mx28evk: Convert to PHYLIB
@ 2013-06-07  0:04 Fabio Estevam
  2013-06-07  0:04 ` [U-Boot] [PATCH 2/2] phy: smsc: LAN8710/8720 are not Gbit PHYs Fabio Estevam
  2013-06-07  0:25 ` [U-Boot] [PATCH 1/2] mx28evk: Convert to PHYLIB Fabio Estevam
  0 siblings, 2 replies; 11+ messages in thread
From: Fabio Estevam @ 2013-06-07  0:04 UTC (permalink / raw)
  To: u-boot

From: Fabio Estevam <fabio.estevam@freescale.com>

Phylib framework is more appropriate for handling the PHYs, so let's use it
on mx28evk.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 board/freescale/mx28evk/mx28evk.c | 7 +++++++
 include/configs/mx28evk.h         | 2 ++
 2 files changed, 9 insertions(+)

diff --git a/board/freescale/mx28evk/mx28evk.c b/board/freescale/mx28evk/mx28evk.c
index 4edd9f4..fc204fc 100644
--- a/board/freescale/mx28evk/mx28evk.c
+++ b/board/freescale/mx28evk/mx28evk.c
@@ -105,6 +105,13 @@ int board_mmc_init(bd_t *bis)
 #endif
 
 #ifdef	CONFIG_CMD_NET
+int board_phy_config(struct phy_device *phydev)
+{
+	if (phydev->drv->config)
+		phydev->drv->config(phydev);
+
+	return 0;
+}
 
 int board_eth_init(bd_t *bis)
 {
diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h
index de69182..a3e2c0e 100644
--- a/include/configs/mx28evk.h
+++ b/include/configs/mx28evk.h
@@ -176,6 +176,8 @@
 #define CONFIG_MII
 #define CONFIG_FEC_XCV_TYPE	RMII
 #define CONFIG_MX28_FEC_MAC_IN_OCOTP
+#define CONFIG_PHYLIB
+#define CONFIG_PHY_SMSC
 #endif
 
 /* RTC */
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-08-19 17:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-07  0:04 [U-Boot] [PATCH 1/2] mx28evk: Convert to PHYLIB Fabio Estevam
2013-06-07  0:04 ` [U-Boot] [PATCH 2/2] phy: smsc: LAN8710/8720 are not Gbit PHYs Fabio Estevam
2013-07-12  2:45   ` Fabio Estevam
2013-07-12  4:57     ` Joe Hershberger
2013-07-12  5:00       ` Joe Hershberger
2013-07-12  5:06         ` Fabio Estevam
2013-07-12  5:37           ` Joe Hershberger
2013-07-12  6:58           ` Stefano Babic
2013-08-19 17:41   ` Joe Hershberger
2013-06-07  0:25 ` [U-Boot] [PATCH 1/2] mx28evk: Convert to PHYLIB Fabio Estevam
2013-06-07  7:07   ` Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox