From: Fabio Estevam <festevam@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] mx28evk: Convert to PHYLIB
Date: Thu, 6 Jun 2013 21:04:18 -0300 [thread overview]
Message-ID: <1370563459-30270-1-git-send-email-festevam@gmail.com> (raw)
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
next reply other threads:[~2013-06-07 0:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-07 0:04 Fabio Estevam [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1370563459-30270-1-git-send-email-festevam@gmail.com \
--to=festevam@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox