common: Drop net.h from common header
[oweals/u-boot.git] / board / amlogic / q200 / q200.c
index de97d6ad586d4daf90e93357add903af68264398..ae9b888c12f234a341d844b6c479a62f8f3bd0bd 100644 (file)
@@ -6,7 +6,8 @@
 
 #include <common.h>
 #include <dm.h>
-#include <environment.h>
+#include <env.h>
+#include <net.h>
 #include <asm/io.h>
 #include <asm/arch/gx.h>
 #include <asm/arch/mem.h>
@@ -31,6 +32,8 @@ int misc_init_r(void)
                                          mac_addr, EFUSE_MAC_SIZE);
                if (len == EFUSE_MAC_SIZE && is_valid_ethaddr(mac_addr))
                        eth_env_set_enetaddr("ethaddr", mac_addr);
+               else
+                       meson_generate_serial_ethaddr();
        }
 
        if (!env_get("serial#")) {