From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH RESEND] phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID
Date: Tue, 27 Sep 2016 14:59:35 +0200 [thread overview]
Message-ID: <aecb84cf-38d1-baff-be81-473503ed4766@denx.de> (raw)
In-Reply-To: <1464279868-17764-1-git-send-email-andrea.merello@gmail.com>
On 05/26/2016 06:24 PM, Andrea Merello wrote:
> This adds support for internal delay on RX and TX on RGMII interface for the
> AR8035 phy.
>
> This is basically the same Linux driver do. Tested on a Zynq Zturn board (for
> which u-boot support in is my tree; first patch waiting ML approval)
>
> Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
Can we get this applied ? Thanks
>
> diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c
> index e57c412..694a338 100644
> --- a/drivers/net/phy/atheros.c
> +++ b/drivers/net/phy/atheros.c
> @@ -31,6 +31,22 @@ static int ar8035_config(struct phy_device *phydev)
> regval = phy_read(phydev, MDIO_DEVAD_NONE, 0x1e);
> phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, (regval|0x0100));
>
> + if ((phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) ||
> + (phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID)) {
> + /* select debug reg 5 */
> + phy_write(phydev, MDIO_DEVAD_NONE, 0x1D, 0x5);
> + /* enable tx delay */
> + phy_write(phydev, MDIO_DEVAD_NONE, 0x1E, 0x0100);
> + }
> +
> + if ((phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) ||
> + (phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID)) {
> + /* select debug reg 0 */
> + phy_write(phydev, MDIO_DEVAD_NONE, 0x1D, 0x0);
> + /* enable rx delay */
> + phy_write(phydev, MDIO_DEVAD_NONE, 0x1E, 0x8000);
> + }
> +
> phydev->supported = phydev->drv->features;
>
> genphy_config_aneg(phydev);
> --
> 2.1.4
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
--
Best regards,
Marek Vasut
next prev parent reply other threads:[~2016-09-27 12:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-26 16:24 [U-Boot] [PATCH RESEND] phy: atheros: add support for RGMII_ID, RGMII_TXID and RGMII_RXID Andrea Merello
2016-09-27 12:59 ` Marek Vasut [this message]
2016-09-28 18:55 ` Joe Hershberger
2016-09-28 19:01 ` Marek Vasut
2016-09-28 19:04 ` Joe Hershberger
2016-09-28 19:10 ` Marek Vasut
2016-09-28 19:13 ` Joe Hershberger
2016-09-29 17:22 ` Michal Simek
2016-09-28 18:53 ` Joe Hershberger
2016-10-13 17:38 ` [U-Boot] " Joe Hershberger
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=aecb84cf-38d1-baff-be81-473503ed4766@denx.de \
--to=marex@denx.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.