public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 4/5] net: tsec: export tsec_info
@ 2008-09-30 16:27 Anton Vorontsov
  2008-09-30 19:15 ` Andy Fleming
  0 siblings, 1 reply; 3+ messages in thread
From: Anton Vorontsov @ 2008-09-30 16:27 UTC (permalink / raw)
  To: u-boot

We'll need the exported tsec_info to fix up the phy addresses and
tsecs' flags based on the hardware reset configuration words. Thus
we'll use the tsec_info very early and just once at boot time, so
network code won't notice it.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
---
 drivers/net/tsec.c |    2 +-
 include/tsec.h     |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c
index 8ab6d07..1bca1b4 100644
--- a/drivers/net/tsec.c
+++ b/drivers/net/tsec.c
@@ -72,7 +72,7 @@ static int tsec_mcast_addr (struct eth_device *dev, u8 mcast_mac, u8 set);
 
 /* Default initializations for TSEC controllers. */
 
-static struct tsec_info_struct tsec_info[] = {
+struct tsec_info_struct tsec_info[] = {
 #ifdef CONFIG_TSEC1
 	STD_TSEC_INFO(1),	/* TSEC1 */
 #endif
diff --git a/include/tsec.h b/include/tsec.h
index f7e5857..191bf1b 100644
--- a/include/tsec.h
+++ b/include/tsec.h
@@ -630,6 +630,8 @@ struct tsec_info_struct {
 	u32 flags;
 };
 
+extern struct tsec_info_struct tsec_info[];
+
 int tsec_initialize(bd_t * bis, struct tsec_info_struct *tsec_info);
 int tsec_standard_init(bd_t *bis);
 int tsec_eth_init(bd_t *bis, struct tsec_info_struct *tsec_info, int num);
-- 
1.5.6.3

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

end of thread, other threads:[~2008-09-30 21:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-30 16:27 [U-Boot] [PATCH 4/5] net: tsec: export tsec_info Anton Vorontsov
2008-09-30 19:15 ` Andy Fleming
2008-09-30 21:56   ` Anton Vorontsov

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