public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 3/5]P2020RDB Added support of Vitesse PHYs VSC8641(RGMII) and VSC8221(SGMII)
@ 2009-07-02 10:45 Poonam Aggrwal
  2009-07-02 13:32 ` Kumar Gala
  2009-07-10  6:31 ` Ben Warren
  0 siblings, 2 replies; 3+ messages in thread
From: Poonam Aggrwal @ 2009-07-02 10:45 UTC (permalink / raw)
  To: u-boot

These PHYs are on P2020RDB platform.

Also revamped Freescale copyright message in drivers/net/tsec.c.

Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>
---
 drivers/net/tsec.c |   52 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 51 insertions(+), 1 deletions(-)

diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c
index 63fc02e..f618be5 100644
--- a/drivers/net/tsec.c
+++ b/drivers/net/tsec.c
@@ -5,7 +5,7 @@
  * terms of the GNU Public License, Version 2, incorporated
  * herein by reference.
  *
- * Copyright 2004, 2007 Freescale Semiconductor, Inc.
+ * Copyright (C) 2004-2009 Freescale Semiconductor, Inc. All rights reserved.
  * (C) Copyright 2003, Motorola, Inc.
  * author Andy Fleming
  *
@@ -1426,6 +1426,54 @@ struct phy_info phy_info_VSC8244 = {
 			   },
 };
 
+struct phy_info phy_info_VSC8641 = {
+	0x7043,
+	"Vitesse VSC8641",
+	4,
+	(struct phy_cmd[]){	/* config */
+			   /* Configure some basic stuff */
+			   {MIIM_CONTROL, MIIM_CONTROL_INIT, &mii_cr_init},
+			   {miim_end,}
+			   },
+	(struct phy_cmd[]){	/* startup */
+			   /* Read the Status (2x to make sure link is right) */
+			   {MIIM_STATUS, miim_read, NULL},
+			   /* Auto-negotiate */
+			   {MIIM_STATUS, miim_read, &mii_parse_sr},
+			   /* Read the status */
+			   {MIIM_VSC8244_AUX_CONSTAT, miim_read,
+			    &mii_parse_vsc8244},
+			   {miim_end,}
+			   },
+	(struct phy_cmd[]){	/* shutdown */
+			   {miim_end,}
+			   },
+};
+
+struct phy_info phy_info_VSC8221 = {
+	0xfc55,
+	"Vitesse VSC8221",
+	4,
+	(struct phy_cmd[]){	/* config */
+			   /* Configure some basic stuff */
+			   {MIIM_CONTROL, MIIM_CONTROL_INIT, &mii_cr_init},
+			   {miim_end,}
+			   },
+	(struct phy_cmd[]){	/* startup */
+			   /* Read the Status (2x to make sure link is right) */
+			   {MIIM_STATUS, miim_read, NULL},
+			   /* Auto-negotiate */
+			   {MIIM_STATUS, miim_read, &mii_parse_sr},
+			   /* Read the status */
+			   {MIIM_VSC8244_AUX_CONSTAT, miim_read,
+			    &mii_parse_vsc8244},
+			   {miim_end,}
+			   },
+	(struct phy_cmd[]){	/* shutdown */
+			   {miim_end,}
+			   },
+};
+
 struct phy_info phy_info_VSC8601 = {
 		0x00007042,
 		"Vitesse VSC8601",
@@ -1663,6 +1711,8 @@ struct phy_info *phy_info[] = {
 	&phy_info_VSC8211,
 	&phy_info_VSC8244,
 	&phy_info_VSC8601,
+	&phy_info_VSC8641,
+	&phy_info_VSC8221,
 	&phy_info_dp83865,
 	&phy_info_rtl8211b,
 	&phy_info_generic,	/* must be last; has ID 0 and 32 bit mask */
-- 
1.5.6.3

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

* [U-Boot] [PATCH 3/5]P2020RDB Added support of Vitesse PHYs VSC8641(RGMII) and VSC8221(SGMII)
  2009-07-02 10:45 [U-Boot] [PATCH 3/5]P2020RDB Added support of Vitesse PHYs VSC8641(RGMII) and VSC8221(SGMII) Poonam Aggrwal
@ 2009-07-02 13:32 ` Kumar Gala
  2009-07-10  6:31 ` Ben Warren
  1 sibling, 0 replies; 3+ messages in thread
From: Kumar Gala @ 2009-07-02 13:32 UTC (permalink / raw)
  To: u-boot


On Jul 2, 2009, at 5:45 AM, Poonam Aggrwal wrote:

> These PHYs are on P2020RDB platform.
>
> Also revamped Freescale copyright message in drivers/net/tsec.c.
>
> Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>
> ---
> drivers/net/tsec.c |   52 +++++++++++++++++++++++++++++++++++++++++++ 
> ++++++++-
> 1 files changed, 51 insertions(+), 1 deletions(-)

Ben, I leave this to you to pick up.

- k

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

* [U-Boot] [PATCH 3/5]P2020RDB Added support of Vitesse PHYs VSC8641(RGMII) and VSC8221(SGMII)
  2009-07-02 10:45 [U-Boot] [PATCH 3/5]P2020RDB Added support of Vitesse PHYs VSC8641(RGMII) and VSC8221(SGMII) Poonam Aggrwal
  2009-07-02 13:32 ` Kumar Gala
@ 2009-07-10  6:31 ` Ben Warren
  1 sibling, 0 replies; 3+ messages in thread
From: Ben Warren @ 2009-07-10  6:31 UTC (permalink / raw)
  To: u-boot

Poonam Aggrwal wrote:
> These PHYs are on P2020RDB platform.
>
> Also revamped Freescale copyright message in drivers/net/tsec.c.
>
> Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>
> ---
<snip>

applied to net repo.

thanks,
Ben

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

end of thread, other threads:[~2009-07-10  6:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-02 10:45 [U-Boot] [PATCH 3/5]P2020RDB Added support of Vitesse PHYs VSC8641(RGMII) and VSC8221(SGMII) Poonam Aggrwal
2009-07-02 13:32 ` Kumar Gala
2009-07-10  6:31 ` Ben Warren

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