]> git.baikalelectronics.ru Git - uboot.git/commit
board: turris: Allow to specify first eth idx of first MAC address
authorPali Rohár <pali@kernel.org>
Fri, 8 Apr 2022 14:30:14 +0000 (16:30 +0200)
committerStefan Roese <sr@denx.de>
Thu, 21 Apr 2022 10:31:36 +0000 (12:31 +0200)
commit77256f26ab7cb9e7aa8ea9b65560d6ad694fa437
tree8ae109f3c64877d8674f74453cf8040a569c4dd1
parente9ee3dd97f0954391950ad600b4b0fc6c711fe4d
board: turris: Allow to specify first eth idx of first MAC address

Turris Omnia uses first MAC address from OTP for second ethernet interface.
Second MAC address for third interface and third MAC address for first
interface.

Other Turris routers do not have this rotate by one mapping. So add
function parameter for specifying id of the first ethernet interface.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
board/CZ.NIC/turris_atsha_otp.c
board/CZ.NIC/turris_atsha_otp.h
board/CZ.NIC/turris_omnia/turris_omnia.c