Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot-2015.04
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vesta
u-boot-2015.04
Commits
baac607c
Commit
baac607c
authored
20 years ago
by
Wolfgang Denk
Browse files
Options
Downloads
Patches
Plain Diff
Change init sequence for multiple network interfaces: initialize
on-chip interfaces before external cards.
parent
32877d66
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+3
-0
3 additions, 0 deletions
CHANGELOG
net/eth.c
+26
-26
26 additions, 26 deletions
net/eth.c
with
29 additions
and
26 deletions
CHANGELOG
+
3
−
0
View file @
baac607c
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
Changes since U-Boot 1.1.1:
Changes since U-Boot 1.1.1:
======================================================================
======================================================================
* Change init sequence for multiple network interfaces: initialize
on-chip interfaces before external cards.
* Fix memory leak in the NAND-specific JFFS2 code
* Fix memory leak in the NAND-specific JFFS2 code
* Fix SL811 USB controller when attached to a USB hub
* Fix SL811 USB controller when attached to a USB hub
...
...
This diff is collapsed.
Click to expand it.
net/eth.c
+
26
−
26
View file @
baac607c
...
@@ -122,7 +122,8 @@ int eth_initialize(bd_t *bis)
...
@@ -122,7 +122,8 @@ int eth_initialize(bd_t *bis)
#ifdef CONFIG_DB64460
#ifdef CONFIG_DB64460
mv6446x_eth_initialize
(
bis
);
mv6446x_eth_initialize
(
bis
);
#endif
#endif
#if defined(CONFIG_405GP) || defined(CONFIG_405EP) || ( defined(CONFIG_440) && !defined(CONFIG_NET_MULTI) )
#if defined(CONFIG_405GP) || defined(CONFIG_405EP) || \
( defined(CONFIG_440) && !defined(CONFIG_NET_MULTI) )
ppc_4xx_eth_initialize
(
bis
);
ppc_4xx_eth_initialize
(
bis
);
#endif
#endif
#if defined(CONFIG_440) && defined(CONFIG_NET_MULTI)
#if defined(CONFIG_440) && defined(CONFIG_NET_MULTI)
...
@@ -134,6 +135,24 @@ int eth_initialize(bd_t *bis)
...
@@ -134,6 +135,24 @@ int eth_initialize(bd_t *bis)
#ifdef CONFIG_PLB2800_ETHER
#ifdef CONFIG_PLB2800_ETHER
plb2800_eth_initialize
(
bis
);
plb2800_eth_initialize
(
bis
);
#endif
#endif
#ifdef SCC_ENET
scc_initialize
(
bis
);
#endif
#if defined(FEC_ENET) || defined(CONFIG_ETHER_ON_FCC)
fec_initialize
(
bis
);
#endif
#if defined(CONFIG_MPC5xxx_FEC)
mpc5xxx_fec_initialize
(
bis
);
#endif
#if defined(CONFIG_SK98)
skge_initialize
(
bis
);
#endif
#ifdef CONFIG_TSEC_ENET
tsec_initialize
(
bis
);
#endif
#if defined(CONFIG_AU1X00)
au1x00_enet_initialize
(
bis
);
#endif
#ifdef CONFIG_E1000
#ifdef CONFIG_E1000
e1000_initialize
(
bis
);
e1000_initialize
(
bis
);
#endif
#endif
...
@@ -158,24 +177,6 @@ int eth_initialize(bd_t *bis)
...
@@ -158,24 +177,6 @@ int eth_initialize(bd_t *bis)
#ifdef CONFIG_NS8382X
#ifdef CONFIG_NS8382X
ns8382x_initialize
(
bis
);
ns8382x_initialize
(
bis
);
#endif
#endif
#ifdef SCC_ENET
scc_initialize
(
bis
);
#endif
#if defined(FEC_ENET) || defined(CONFIG_ETHER_ON_FCC)
fec_initialize
(
bis
);
#endif
#if defined(CONFIG_MPC5xxx_FEC)
mpc5xxx_fec_initialize
(
bis
);
#endif
#if defined(CONFIG_SK98)
skge_initialize
(
bis
);
#endif
#ifdef CONFIG_TSEC_ENET
tsec_initialize
(
bis
);
#endif
#if defined(CONFIG_AU1X00)
au1x00_enet_initialize
(
bis
);
#endif
#if defined(CONFIG_RTL8139)
#if defined(CONFIG_RTL8139)
rtl8139_initialize
(
bis
);
rtl8139_initialize
(
bis
);
#endif
#endif
...
@@ -213,13 +214,14 @@ int eth_initialize(bd_t *bis)
...
@@ -213,13 +214,14 @@ int eth_initialize(bd_t *bis)
if
(
memcmp
(
dev
->
enetaddr
,
"
\0\0\0\0\0\0
"
,
6
)
&&
if
(
memcmp
(
dev
->
enetaddr
,
"
\0\0\0\0\0\0
"
,
6
)
&&
memcmp
(
dev
->
enetaddr
,
env_enetaddr
,
6
))
memcmp
(
dev
->
enetaddr
,
env_enetaddr
,
6
))
{
{
printf
(
"
\n
Warning: %s MAC addresses don't match:
\n
"
,
dev
->
name
);
printf
(
"
\n
Warning: %s MAC addresses don't match:
\n
"
,
printf
(
"Address in SROM is "
dev
->
name
);
printf
(
"Address in SROM is "
"%02X:%02X:%02X:%02X:%02X:%02X
\n
"
,
"%02X:%02X:%02X:%02X:%02X:%02X
\n
"
,
dev
->
enetaddr
[
0
],
dev
->
enetaddr
[
1
],
dev
->
enetaddr
[
0
],
dev
->
enetaddr
[
1
],
dev
->
enetaddr
[
2
],
dev
->
enetaddr
[
3
],
dev
->
enetaddr
[
2
],
dev
->
enetaddr
[
3
],
dev
->
enetaddr
[
4
],
dev
->
enetaddr
[
5
]);
dev
->
enetaddr
[
4
],
dev
->
enetaddr
[
5
]);
printf
(
"Address in environment is "
printf
(
"Address in environment is "
"%02X:%02X:%02X:%02X:%02X:%02X
\n
"
,
"%02X:%02X:%02X:%02X:%02X:%02X
\n
"
,
env_enetaddr
[
0
],
env_enetaddr
[
1
],
env_enetaddr
[
0
],
env_enetaddr
[
1
],
env_enetaddr
[
2
],
env_enetaddr
[
3
],
env_enetaddr
[
2
],
env_enetaddr
[
3
],
...
@@ -341,8 +343,7 @@ void eth_try_another(int first_restart)
...
@@ -341,8 +343,7 @@ void eth_try_another(int first_restart)
if
(
!
eth_current
)
if
(
!
eth_current
)
return
;
return
;
if
(
first_restart
)
if
(
first_restart
)
{
{
first_failed
=
eth_current
;
first_failed
=
eth_current
;
}
}
...
@@ -357,8 +358,7 @@ void eth_try_another(int first_restart)
...
@@ -357,8 +358,7 @@ void eth_try_another(int first_restart)
}
}
#endif
#endif
if
(
first_failed
==
eth_current
)
if
(
first_failed
==
eth_current
)
{
{
NetRestartWrap
=
1
;
NetRestartWrap
=
1
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment