Commit deaab58b authored by Matthijs van Duin's avatar Matthijs van Duin Committed by Nick Elsmore

omap: don't try to set mac address when networking is disabled

parent 55a3252f
......@@ -81,12 +81,13 @@ void omap_die_id_get_board_serial(struct tag_serialnr *serialnr)
void omap_die_id_usbethaddr(void)
{
unsigned int die_id[4] = { 0 };
unsigned char mac[6] = { 0 };
#if defined(CONFIG_CMD_NET)
if (!getenv("usbethaddr")) {
unsigned int die_id[4] = { 0 };
unsigned char mac[6] = { 0 };
omap_die_id((unsigned int *)&die_id);
omap_die_id((unsigned int *)&die_id);
if (!getenv("usbethaddr")) {
/*
* Create a fake MAC address from the processor ID code.
* First byte is 0x02 to signify locally administered.
......@@ -100,6 +101,7 @@ void omap_die_id_usbethaddr(void)
eth_setenv_enetaddr("usbethaddr", mac);
}
#endif
}
void omap_die_id_display(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment