mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
When bringing in the series 'arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"' I failed to notice that b4 noticed it was based on next and so took that as the base commit and merged that part of next to master. This reverts commitc8ffd1356d, reversing changes made to2ee6f3a5f7. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
34 lines
727 B
C
34 lines
727 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright 2020 Broadcom
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <command.h>
|
|
#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,
|
|
char *const argv[])
|
|
{
|
|
int ret = CMD_RET_USAGE;
|
|
u32 hstatus;
|
|
|
|
/* Returns 1, if handshake call is success */
|
|
if (chimp_handshake_status_optee(0, &hstatus))
|
|
ret = CMD_RET_SUCCESS;
|
|
|
|
if (hstatus == CHIMP_HANDSHAKE_SUCCESS)
|
|
printf("ChiMP Handshake successful\n");
|
|
else
|
|
printf("ERROR: ChiMP Handshake status 0x%x\n", hstatus);
|
|
|
|
return ret;
|
|
}
|
|
|
|
U_BOOT_CMD
|
|
(chimp_hs, 1, 1, do_chimp_hs,
|
|
"Verify the Chimp handshake",
|
|
"chimp_hs\n"
|
|
);
|