Skip to content
Commit 8adc9d18 authored by Klaus Goger's avatar Klaus Goger Committed by Simon Glass
Browse files

rockchip: board: puma_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.

Signed-off-by: default avatarKlaus Goger <klaus.goger@theobroma-systems.com>
Signed-off-by: Philipp Tomsich's avatarPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>

Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
parent 9415b9a7
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