mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 10:18:38 +00:00
98bbb6e7ab
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>
9 lines
232 B
C
9 lines
232 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
#ifndef TURRIS_ATSHA_OTP_H
|
|
#define TURRIS_ATSHA_OTP_H
|
|
|
|
int turris_atsha_otp_init_mac_addresses(int first_idx);
|
|
int turris_atsha_otp_get_serial_number(u32 *version_num, u32 *serial_num);
|
|
|
|
#endif
|