Skip to content
Snippets Groups Projects
Commit 02a301cd authored by Stefan Roese's avatar Stefan Roese Committed by Wolfgang Denk
Browse files

powerpc: Only use eth_getenv_enetaddr() if networking is enabled


Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent 5c4fa9b4
No related branches found
No related tags found
No related merge requests found
...@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment