summaryrefslogtreecommitdiff
path: root/cmd/fpga.c
diff options
context:
space:
mode:
authorIbai Erkiaga <ibai.erkiaga-elorza@amd.com>2025-01-21 13:01:31 +0000
committerMichal Simek <michal.simek@amd.com>2025-02-05 16:22:55 +0100
commitd2619de211aa7f18d65cae3fdc7bd1ea29eef081 (patch)
tree32e43032a1085ec90aab3eb95bc92cf0f0f2f17a /cmd/fpga.c
parentc0fed34e0ec505c53087c01b9738c0968f5d02ef (diff)
fpga: improve loads usage information
Current usage information for loads command is too verbose and long for a command usage prompt. This flag simplifies the text for readability purposes. Signed-off-by: Ibai Erkiaga <ibai.erkiaga-elorza@amd.com> Link: https://lore.kernel.org/r/20250121130138.1999916-3-ibai.erkiaga-elorza@amd.com Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'cmd/fpga.c')
-rw-r--r--cmd/fpga.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/cmd/fpga.c b/cmd/fpga.c
index ae85ff201b8..91ccbee0fef 100644
--- a/cmd/fpga.c
+++ b/cmd/fpga.c
@@ -434,18 +434,13 @@ U_BOOT_CMD(fpga, 6, 1, do_fpga_wrapper,
#endif
#endif
#if defined(CONFIG_CMD_FPGA_LOAD_SECURE)
- "fpga loads <dev> <address> <size> <auth-OCM-0/DDR-1/noauth-2>\n"
- " <enc-devkey(0)/userkey(1)/nenc(2> [Userkey address]\n"
- " Loads the secure bistreams(authenticated/encrypted/both\n"
- " authenticated and encrypted) of [size] from [address]\n"
- " (Xilinx only)\n"
- " -The auth-OCM/DDR flag specifies to perform authentication\n"
- " in OCM or in DDR. 0 for OCM, 1 for DDR, 2 for no authentication\n"
- " -The enc flag specifies which key to be used for decryption\n"
- " 0-device key, 1-user key, 2-no encryption.\n"
- " -The optional Userkey address specifies from which address key\n"
- " has to be used for decryption if user key is selected.\n"
- " NOTE: the secure bitstream has to be created using Xilinx\n"
- " bootgen tool only.\n"
+ "fpga loads <dev> <address> <size> <authflag> <encflag> [Userkey address]\n"
+ " Load device from memory buffer with secure bistream\n"
+ " (authenticated/encrypted/both)(Xilinx only)\n"
+ " -authflag: 0 for OCM, 1 for DDR, 2 for no authentication\n"
+ " (specifies where to perform authentication)\n"
+ " -encflag: 0 for device key, 1 for user key, 2 for no encryption\n"
+ " -Userkey address: address where user key is stored\n"
+ " NOTE: secure bitstream has to be created using Xilinx bootgen tool\n"
#endif
);