board: turris: Move Turris Atsha OTP code to separate file
authorPali Rohár <pali@kernel.org>
Fri, 8 Apr 2022 14:30:12 +0000 (16:30 +0200)
committerStefan Roese <sr@denx.de>
Thu, 21 Apr 2022 10:31:36 +0000 (12:31 +0200)
commit6ac08dc1a83d786d8749525df32c94b94bb36123
tree08b7510bf1ad6e04ea393202d9409007c25ba944
parent1d71bbca45b03eb5ba6cabbb2859047b8cb80229
board: turris: Move Turris Atsha OTP code to separate file

OTP code is not Atsha generic but also it is not Omnia specific. It is
common for all Turris routers which use Atsha cryptochip for storing OTP.
So move this common Turris specific Atsha OTP code from Turris Omnia into
separate file. It will be used also by other Turris routers.

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 [new file with mode: 0644]
board/CZ.NIC/turris_atsha_otp.h [new file with mode: 0644]
board/CZ.NIC/turris_omnia/Makefile
board/CZ.NIC/turris_omnia/turris_omnia.c