arm: mvebu: a37xx: Extend mbox_do_cmd() code
authorPali Rohár <pali@kernel.org>
Wed, 23 Feb 2022 13:15:48 +0000 (14:15 +0100)
committerStefan Roese <sr@denx.de>
Thu, 21 Apr 2022 10:31:36 +0000 (12:31 +0200)
commit85df8f9a211610d4406e644061220b5e2fd221c7
treed44dc0a74a4e929be030f640bbbb3037932b7230
parent46ce9c78a99814639763d8ea9ac1bf7354b6ea8d
arm: mvebu: a37xx: Extend mbox_do_cmd() code

Allow to specify input parameters, define all available mbox commands
supported by CZ.NIC's secure firmware and also Marvell's fuse.bin firmware
and fix parsing response from Marvell OTP commands.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/armada3700/mbox.c
arch/arm/mach-mvebu/include/mach/mbox.h
board/CZ.NIC/turris_mox/mox_sp.c