aboutsummaryrefslogtreecommitdiff
path: root/board/CZ.NIC/turris_mox
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-02-23 14:15:48 +0100
committerStefan Roese <sr@denx.de>2022-04-21 12:31:36 +0200
commit85df8f9a211610d4406e644061220b5e2fd221c7 (patch)
treed44dc0a74a4e929be030f640bbbb3037932b7230 /board/CZ.NIC/turris_mox
parent46ce9c78a99814639763d8ea9ac1bf7354b6ea8d (diff)
downloadu-boot-85df8f9a211610d4406e644061220b5e2fd221c7.zip
u-boot-85df8f9a211610d4406e644061220b5e2fd221c7.tar.gz
u-boot-85df8f9a211610d4406e644061220b5e2fd221c7.tar.bz2
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>
Diffstat (limited to 'board/CZ.NIC/turris_mox')
-rw-r--r--board/CZ.NIC/turris_mox/mox_sp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/CZ.NIC/turris_mox/mox_sp.c b/board/CZ.NIC/turris_mox/mox_sp.c
index 4de067b..93e96b0 100644
--- a/board/CZ.NIC/turris_mox/mox_sp.c
+++ b/board/CZ.NIC/turris_mox/mox_sp.c
@@ -19,7 +19,7 @@ const char *mox_sp_get_ecdsa_public_key(void)
if (public_key[0])
return public_key;
- res = mbox_do_cmd(MBOX_CMD_ECDSA_PUB_KEY, out, 16);
+ res = mbox_do_cmd(MBOX_CMD_ECDSA_PUB_KEY, NULL, 0, out, 16);
if (res < 0)
return NULL;
@@ -47,7 +47,7 @@ int mbox_sp_get_board_info(u64 *sn, u8 *mac1, u8 *mac2, int *bv, int *ram)
u32 out[8];
int res;
- res = mbox_do_cmd(MBOX_CMD_BOARD_INFO, out, 8);
+ res = mbox_do_cmd(MBOX_CMD_BOARD_INFO, NULL, 0, out, 8);
if (res < 0)
return res;