1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (c) 2018 Bootlin
4 * Author: Miquel Raynal <miquel.raynal@bootlin.com>
10 #include <tpm-common.h>
12 #include "tpm-user-utils.h"
14 static cmd_tbl_t tpm2_commands[] = {
15 U_BOOT_CMD_MKENT(info, 0, 1, do_tpm_info, "", ""),
16 U_BOOT_CMD_MKENT(init, 0, 1, do_tpm_init, "", ""),
19 cmd_tbl_t *get_tpm_commands(unsigned int *size)
21 *size = ARRAY_SIZE(tpm2_commands);
26 U_BOOT_CMD(tpm, CONFIG_SYS_MAXARGS, 1, do_tpm, "Issue a TPMv2.x command",
27 "<command> [<arguments>]\n"
30 " Show information about the TPM.\n"
32 " Initialize the software stack. Always the first command to issue.\n"