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