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
02a301cd
Commit
02a301cd
authored
16 years ago
by
Stefan Roese
Committed by
Wolfgang Denk
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
powerpc: Only use eth_getenv_enetaddr() if networking is enabled
Signed-off-by:
Stefan Roese
<
sr@denx.de
>
parent
5c4fa9b4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib_ppc/board.c
+2
-0
2 additions, 0 deletions
lib_ppc/board.c
with
2 additions
and
0 deletions
lib_ppc/board.c
+
2
−
0
View file @
02a301cd
...
@@ -884,6 +884,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
...
@@ -884,6 +884,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
bd
->
bi_ethspeed
=
0xFFFF
;
bd
->
bi_ethspeed
=
0xFFFF
;
#endif
#endif
#ifdef CONFIG_CMD_NET
/* kept around for legacy kernels only ... ignore the next section */
/* kept around for legacy kernels only ... ignore the next section */
eth_getenv_enetaddr
(
"ethaddr"
,
bd
->
bi_enetaddr
);
eth_getenv_enetaddr
(
"ethaddr"
,
bd
->
bi_enetaddr
);
#ifdef CONFIG_HAS_ETH1
#ifdef CONFIG_HAS_ETH1
...
@@ -901,6 +902,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
...
@@ -901,6 +902,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
#ifdef CONFIG_HAS_ETH5
#ifdef CONFIG_HAS_ETH5
eth_getenv_enetaddr
(
"eth5addr"
,
bd
->
bi_enet5addr
);
eth_getenv_enetaddr
(
"eth5addr"
,
bd
->
bi_enet5addr
);
#endif
#endif
#endif
/* CONFIG_CMD_NET */
/* IP Address */
/* IP Address */
bd
->
bi_ip_addr
=
getenv_IPaddr
(
"ipaddr"
);
bd
->
bi_ip_addr
=
getenv_IPaddr
(
"ipaddr"
);
...
...
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