]> git.baikalelectronics.ru Git - uboot.git/commit
board: am335x: Set serial# variable
authorSam Protsenko <semen.protsenko@linaro.org>
Tue, 27 Feb 2018 22:26:15 +0000 (00:26 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 16 Mar 2018 13:42:24 +0000 (09:42 -0400)
commit62b52007fc2ac3246e012203102d091491972441
tree0c592141ad7367d2554475179cc6ea4c4cc1e780
parent62dfd1239ec305e8dae1f3218dffa60644e630dd
board: am335x: Set serial# variable

serial# variable is needed to show the device correctly in "fastboot
devices" output. It's useful when we have several devices (in fastboot
mode) connected to single host and want to choose which one to flash.

We can't use omap_die_id_serial() for this, because AM335x lacks
DIE_ID, as can be seen from AM335x TRM. Let's do next:
 - reuse board_serial variable (obtained from EEPROM in
   set_board_info_env() function) to set serial#
 - if board_serial is "unknown", reuse ethaddr variable to set serial#

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
board/ti/am335x/board.c