]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: mvebu: turris_omnia: Implement getting board information from MCU
authorMarek Behún <kabel@kernel.org>
Thu, 4 Apr 2024 07:50:54 +0000 (09:50 +0200)
committerStefan Roese <sr@denx.de>
Thu, 4 Apr 2024 08:45:27 +0000 (10:45 +0200)
commit2f1b88affad2094aeab4cd617e22e79ee9dc22a3
treef65dd3760ac14390444a7fb66c65532795fad1da
parented8d3bd11a97345a1045ec8c60ee2d1e12040795
arm: mvebu: turris_omnia: Implement getting board information from MCU

Implement reading board serial number, first MAC address and board
version from MCU. MCU supports board information if the FEAT_BOARD_INFO
feature bit is set in MCU features.

Prefer getting board information from MCU if supported, fallback to
Atmel SHA chip.

Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
board/CZ.NIC/turris_atsha_otp.c
board/CZ.NIC/turris_common.c [new file with mode: 0644]
board/CZ.NIC/turris_common.h [new file with mode: 0644]
board/CZ.NIC/turris_omnia/Makefile
board/CZ.NIC/turris_omnia/turris_omnia.c