From: Ben Warren <bwarren@qstreams.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] add config options for VSC8601 RGMII PHY - 2nd try
Date: Wed, 30 Apr 2008 23:55:11 -0700 [thread overview]
Message-ID: <4819694F.5060406@qstreams.com> (raw)
In-Reply-To: <48175868.5090501@matrix-vision.de>
Andre Schwarz wrote:
> The Vitesse VSC8601 RGMII PHY has internal delay for both Rx
> and Tx clock lines. They are configured using 2 bits in extended
> register 0x17.
> Therefore CFG_VSC8601_SKEW_TX and CFG_VSC8601_SKEW_RX have
> been introduced with valid values 0-3 giving 0.0, 1.4,1.7 and 2.0ns delay.
>
> Signed-off-by: Andre Schwarz <andre.schwarz@matrix-vision.de>
>
Acked-by: Ben Warren <biggerbadderben@gmail.com>
> --
>
>
>
Wolfgang - please apply directly. I believe this one was on your list
of outstanding patches.
> drivers/net/tsec.c | 6 ++++++
> drivers/net/tsec.h | 3 +++
> 2 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c
> index 9d22aa3..06250ae 100644
> --- a/drivers/net/tsec.c
> +++ b/drivers/net/tsec.c
> @@ -1277,6 +1277,12 @@ struct phy_info phy_info_VSC8601 = {
> {MIIM_CONTROL, MIIM_CONTROL_INIT, &mii_cr_init},
> #ifdef CFG_VSC8601_SKEWFIX
>
> {MIIM_VSC8601_EPHY_CON,MIIM_VSC8601_EPHY_CON_INIT_SKEW,NULL},
> +#if defined(CFG_VSC8601_SKEW_TX) && defined(CFG_VSC8601_SKEW_RX)
> + {MIIM_EXT_PAGE_ACCESS,1,NULL},
> +#define VSC8101_SKEW (CFG_VSC8601_SKEW_TX<<14)|(CFG_VSC8601_SKEW_RX<<12)
> + {MIIM_VSC8601_SKEW_CTRL,VSC8101_SKEW,NULL},
> + {MIIM_EXT_PAGE_ACCESS,0,NULL},
> +#endif
> #endif
> {miim_end,}
> },
> diff --git a/drivers/net/tsec.h b/drivers/net/tsec.h
> index cfa7d1a..213a809 100644
> --- a/drivers/net/tsec.h
> +++ b/drivers/net/tsec.h
> @@ -112,6 +112,8 @@
> #define MIIM_GBIT_CONTROL 0x9
> #define MIIM_GBIT_CONTROL_INIT 0xe00
>
> +#define MIIM_EXT_PAGE_ACCESS 0x1f
> +
> /* Broadcom BCM54xx -- taken from linux sungem_phy */
> #define MIIM_BCM54xx_AUXSTATUS 0x19
> #define MIIM_BCM54xx_AUXSTATUS_LINKMODE_MASK 0x0700
> @@ -163,6 +165,7 @@
> /* Vitesse VSC8601 Extended PHY Control Register 1 */
> #define MIIM_VSC8601_EPHY_CON 0x17
> #define MIIM_VSC8601_EPHY_CON_INIT_SKEW 0x1120
> +#define MIIM_VSC8601_SKEW_CTRL 0x1c
>
> /* 88E1011 PHY Status Register */
> #define MIIM_88E1011_PHY_STATUS 0x11
>
>
> MATRIX VISION GmbH, Talstra?e 16, DE-71570 Oppenweiler - Registergericht: Amtsgericht Stuttgart, HRB 271090
> Gesch?ftsf?hrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner
>
>
next prev parent reply other threads:[~2008-05-01 6:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-29 17:18 [U-Boot-Users] [PATCH] add config options for VSC8601 RGMII PHY - 2nd try Andre Schwarz
2008-04-29 19:40 ` Andy Fleming
2008-05-01 6:55 ` Ben Warren [this message]
2008-05-03 21:26 ` Wolfgang Denk
2008-05-04 10:19 ` André Schwarz
2008-05-05 17:04 ` Kim Phillips
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=4819694F.5060406@qstreams.com \
--to=bwarren@qstreams.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