]> git.baikalelectronics.ru Git - uboot.git/commit
board: amlogic: vim3: configure serial# from ethaddr
authorMattijs Korpershoek <mkorpershoek@baylibre.com>
Wed, 19 Jan 2022 14:24:00 +0000 (15:24 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Thu, 20 Jan 2022 08:50:54 +0000 (09:50 +0100)
commiteb7dd6a756f2e5664c2fceb2c3aed4eae8295844
treeeef7727b9eac732d34d3454573ee5cad1e207b2b
parentc195e17b66653e097be82d178dbcdd7d9c943e13
board: amlogic: vim3: configure serial# from ethaddr

The Khadas VIM3 and VIM3L boards, which are supported in Android via
Yukawa [1] need a serial number for usb/fastboot enumeration.

Whenever the environment does not provide a serial#, use the eth mac
address as serial#.

[1] https://source.android.com/setup/build/devices#vim3_and_vim3l_boards

Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lore.kernel.org/r/20220119142400.127342-1-mkorpershoek@baylibre.com
board/amlogic/vim3/vim3.c