[U-Boot] [PATCH 4/5] net: tsec: export tsec_info
Anton Vorontsov
avorontsov at ru.mvista.com
Tue Sep 30 18:27:37 CEST 2008
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 at 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
More information about the U-Boot
mailing list