Skip to content
Snippets Groups Projects
Commit 04825384 authored by Rohan Garg's avatar Rohan Garg Committed by Kever Yang
Browse files

rockchip: rk3399: derive ethaddr from cpuid


Generate a MAC address based on the cpuid available in the efuse
block: Use the first 6 byte of the cpuid's SHA256 hash and set the
locally administered bits. Also ensure that the multicast bit is
cleared.

The MAC address is only generated and set if there is no ethaddr
present in the saved environment.

This is based off of Klaus Goger's work in 8adc9d

Signed-off-by: default avatarRohan Garg <rohan.garg@collabora.com>
Reviewed-by: default avatarKever Yang <kever.yang@rock-chips.com>
parent cb8c492f
No related branches found
No related tags found
Loading
Loading
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