diff options
author | Neil Armstrong | 2019-06-12 11:49:08 +0200 |
---|---|---|
committer | Neil Armstrong | 2019-07-04 16:04:59 +0200 |
commit | 3f1f9f08eb2031e14a7e2037feed18a69f1437c6 (patch) | |
tree | d1c7807fd4965012962cbed3358649a4f1c24f1f /board/amlogic/q200/q200.c | |
parent | dad258fadd1e35db2e59ef23f3e60b0122dbaede (diff) |
board: amlogic: Generate unique MAC address for Q200 and P212 based boards
Enable unique MAC address generation for boards usins SoCs having
a known functional and valid unique serial number.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Diffstat (limited to 'board/amlogic/q200/q200.c')
-rw-r--r-- | board/amlogic/q200/q200.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/amlogic/q200/q200.c b/board/amlogic/q200/q200.c index de97d6ad586..2ea97c362ec 100644 --- a/board/amlogic/q200/q200.c +++ b/board/amlogic/q200/q200.c @@ -31,6 +31,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#")) { |