1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2020 Broadcom
8 #include <broadcom/chimp.h>
10 /* This command should be called after loading the nitro binaries */
11 static int do_chimp_hs(struct cmd_tbl *cmdtp, int flag, int argc,
14 int ret = CMD_RET_USAGE;
17 /* Returns 1, if handshake call is success */
18 if (chimp_handshake_status_optee(0, &hstatus))
19 ret = CMD_RET_SUCCESS;
21 if (hstatus == CHIMP_HANDSHAKE_SUCCESS)
22 printf("ChiMP Handshake successful\n");
24 printf("ERROR: ChiMP Handshake status 0x%x\n", hstatus);
30 (chimp_hs, 1, 1, do_chimp_hs,
31 "Verify the Chimp handshake",