1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2020 Intel Corporation <www.intel.com>
7 #include <asm/arch/secure_vab.h>
10 #include <linux/ctype.h>
12 static int do_vab(struct cmd_tbl *cmdtp, int flag, int argc,
15 unsigned long addr, len;
20 addr = hextoul(argv[1], NULL);
21 len = hextoul(argv[2], NULL);
23 if (socfpga_vendor_authentication((void *)&addr, (size_t *)&len) != 0)
24 return CMD_RET_FAILURE;
31 "perform vendor authorization",
32 "addr len - authorize 'len' bytes starting at\n"
33 " 'addr' via vendor public key"