* [U-Boot] [PATCH] tsec: Fix eTSEC2 link problem on P2020RDB
@ 2010-06-27 22:57 Felix Radensky
2010-06-29 18:54 ` Andy Fleming
2010-06-29 19:02 ` Wolfgang Denk
0 siblings, 2 replies; 5+ messages in thread
From: Felix Radensky @ 2010-06-27 22:57 UTC (permalink / raw)
To: u-boot
On P2020RDB eTSEC2 is connected to Vitesse VSC8221 PHY via SGMII.
Current TBI PHY settings for SGMII mode cause link problems on
this platform, link never comes up.
Fix this by making TBI PHY settings configurable and add a working
configuration for P2020RDB.
Signed-off-by: Felix Radensky <felix@embedded-sol.com>
---
drivers/net/tsec.c | 6 +++++-
include/configs/P1_P2_RDB.h | 9 +++++++++
2 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c
index 3e4c3bd..5fa6f61 100644
--- a/drivers/net/tsec.c
+++ b/drivers/net/tsec.c
@@ -281,12 +281,16 @@ static uint tsec_local_mdio_read(volatile tsec_mdio_t *phyregs,
| TBIANA_FULL_DUPLEX \
)
-/* Force the TBI PHY into 1000Mbps full duplex when in SGMII mode */
+/* By default force the TBI PHY into 1000Mbps full duplex when in SGMII mode */
+#ifndef CONFIG_TSEC_TBICR_SETTINGS
#define TBICR_SETTINGS ( \
TBICR_PHY_RESET \
| TBICR_FULL_DUPLEX \
| TBICR_SPEED1_SET \
)
+#else
+#define TBICR_SETTINGS CONFIG_TSEC_TBICR_SETTINGS
+#endif /* CONFIG_TSEC_TBICR_SETTINGS */
/* Configure the TBI for SGMII operation */
static void tsec_configure_serdes(struct tsec_private *priv)
diff --git a/include/configs/P1_P2_RDB.h b/include/configs/P1_P2_RDB.h
index a9b4004..4b7e190 100644
--- a/include/configs/P1_P2_RDB.h
+++ b/include/configs/P1_P2_RDB.h
@@ -425,6 +425,15 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
#define CONFIG_ETHPRIME "eTSEC1"
#define CONFIG_PHY_GIGE 1 /* Include GbE speed/duplex detection */
+
+/* TBI PHY configuration for SGMII mode */
+#define CONFIG_TSEC_TBICR_SETTINGS ( \
+ TBICR_PHY_RESET \
+ | TBICR_ANEG_ENABLE \
+ | TBICR_FULL_DUPLEX \
+ | TBICR_SPEED1_SET \
+ )
+
#endif /* CONFIG_TSEC_ENET */
/*
--
1.5.4.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] tsec: Fix eTSEC2 link problem on P2020RDB
2010-06-27 22:57 [U-Boot] [PATCH] tsec: Fix eTSEC2 link problem on P2020RDB Felix Radensky
@ 2010-06-29 18:54 ` Andy Fleming
2010-06-29 19:02 ` Wolfgang Denk
1 sibling, 0 replies; 5+ messages in thread
From: Andy Fleming @ 2010-06-29 18:54 UTC (permalink / raw)
To: u-boot
On Sun, Jun 27, 2010 at 5:57 PM, Felix Radensky <felix@embedded-sol.com> wrote:
> On P2020RDB eTSEC2 is connected to Vitesse VSC8221 PHY via SGMII.
> Current TBI PHY settings for SGMII mode cause link problems on
> this platform, link never comes up.
>
> Fix this by making TBI PHY settings configurable and add a working
> configuration for P2020RDB.
>
> Signed-off-by: Felix Radensky <felix@embedded-sol.com>
Acked-by: Andy Fleming <afleming@freescale.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] tsec: Fix eTSEC2 link problem on P2020RDB
2010-06-27 22:57 [U-Boot] [PATCH] tsec: Fix eTSEC2 link problem on P2020RDB Felix Radensky
2010-06-29 18:54 ` Andy Fleming
@ 2010-06-29 19:02 ` Wolfgang Denk
2010-06-29 19:07 ` Peter Tyser
1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2010-06-29 19:02 UTC (permalink / raw)
To: u-boot
Dear Felix Radensky,
In message <1277679459-9453-1-git-send-email-felix@embedded-sol.com> you wrote:
> On P2020RDB eTSEC2 is connected to Vitesse VSC8221 PHY via SGMII.
> Current TBI PHY settings for SGMII mode cause link problems on
> this platform, link never comes up.
>
> Fix this by making TBI PHY settings configurable and add a working
> configuration for P2020RDB.
>
> Signed-off-by: Felix Radensky <felix@embedded-sol.com>
> ---
> drivers/net/tsec.c | 6 +++++-
> include/configs/P1_P2_RDB.h | 9 +++++++++
> 2 files changed, 14 insertions(+), 1 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Man did not weave the web of life; he is merely a strand in it.
Whatever he does to the web, he does to himself. - Seattle [1854]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] tsec: Fix eTSEC2 link problem on P2020RDB
2010-06-29 19:02 ` Wolfgang Denk
@ 2010-06-29 19:07 ` Peter Tyser
2010-06-29 21:04 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Peter Tyser @ 2010-06-29 19:07 UTC (permalink / raw)
To: u-boot
On Tue, 2010-06-29 at 21:02 +0200, Wolfgang Denk wrote:
> Dear Felix Radensky,
>
> In message <1277679459-9453-1-git-send-email-felix@embedded-sol.com> you wrote:
> > On P2020RDB eTSEC2 is connected to Vitesse VSC8221 PHY via SGMII.
> > Current TBI PHY settings for SGMII mode cause link problems on
> > this platform, link never comes up.
> >
> > Fix this by making TBI PHY settings configurable and add a working
> > configuration for P2020RDB.
> >
> > Signed-off-by: Felix Radensky <felix@embedded-sol.com>
> > ---
> > drivers/net/tsec.c | 6 +++++-
> > include/configs/P1_P2_RDB.h | 9 +++++++++
> > 2 files changed, 14 insertions(+), 1 deletions(-)
>
> Applied, thanks.
A little late, but:
Acked-by: Peter Tyser <ptyser@xes-inc.com>
Tested-by: Peter Tyser <ptyser@xes-inc.com>
Peter
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] tsec: Fix eTSEC2 link problem on P2020RDB
2010-06-29 19:07 ` Peter Tyser
@ 2010-06-29 21:04 ` Wolfgang Denk
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2010-06-29 21:04 UTC (permalink / raw)
To: u-boot
Dear Peter Tyser,
In message <1277838432.31352.197.camel@petert> you wrote:
>
> > Applied, thanks.
>
> A little late, but:
> Acked-by: Peter Tyser <ptyser@xes-inc.com>
> Tested-by: Peter Tyser <ptyser@xes-inc.com>
Not too late. Added, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The use of COBOL cripples the mind; its teaching should, therefore,
be regarded as a criminal offense. - E. W. Dijkstra
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-06-29 21:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-27 22:57 [U-Boot] [PATCH] tsec: Fix eTSEC2 link problem on P2020RDB Felix Radensky
2010-06-29 18:54 ` Andy Fleming
2010-06-29 19:02 ` Wolfgang Denk
2010-06-29 19:07 ` Peter Tyser
2010-06-29 21:04 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox