arm: mvebu: turris_mox: Read info (and ethaddrs) from OTP
authorMarek Behún <marek.behun@nic.cz>
Mon, 17 Dec 2018 15:10:08 +0000 (16:10 +0100)
committerStefan Roese <sr@denx.de>
Mon, 21 Jan 2019 10:39:50 +0000 (11:39 +0100)
commitc87b87006b0d1f42dd0b2f3a2c0a3048959489cf
tree97b000be4339225bd122fe6d1a054b6431533e0c
parentda1f799700ba4fbc9f24bc2dd4871260d14768b9
arm: mvebu: turris_mox: Read info (and ethaddrs) from OTP

Add support for reading One-Time Programmable memory via mailbox, which
communicates with CZ.NIC's firmware on the Secure Processor (Cortex-M3)
of Armada 3720.

Display product serial number and additional info, and also set MAC
addresses.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
board/CZ.NIC/turris_mox/Makefile
board/CZ.NIC/turris_mox/mox_sp.c [new file with mode: 0644]
board/CZ.NIC/turris_mox/mox_sp.h [new file with mode: 0644]
board/CZ.NIC/turris_mox/turris_mox.c