From 4937392254ba56bcbfb77d7c0600b865b55e8914 Mon Sep 17 00:00:00 2001 From: Ibai Erkiaga Date: Tue, 21 Jan 2025 13:01:32 +0000 Subject: [PATCH] fpga: resort fpga commands Resort the fpga commands both in the Kconfig and in the source code to list Signed-off-by: Ibai Erkiaga Link: https://lore.kernel.org/r/20250121130138.1999916-4-ibai.erkiaga-elorza@amd.com Signed-off-by: Michal Simek --- cmd/Kconfig | 14 +++++++------- cmd/fpga.c | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index e62817bd977..81d2b9b70d9 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1178,6 +1178,13 @@ config CMD_FPGA help FPGA support. +config CMD_FPGA_LOADP + bool "fpga loadp - load partial bitstream" + depends on CMD_FPGA + help + Supports loading an FPGA device from a bitstream buffer containing + a partial bitstream. + config CMD_FPGA_LOADBP bool "fpga loadbp - load partial bitstream (Xilinx only)" depends on CMD_FPGA @@ -1197,13 +1204,6 @@ config CMD_FPGA_LOADMK help Supports loading an FPGA device from a image generated by mkimage. -config CMD_FPGA_LOADP - bool "fpga loadp - load partial bitstream" - depends on CMD_FPGA - help - Supports loading an FPGA device from a bitstream buffer containing - a partial bitstream. - config CMD_FPGA_LOAD_SECURE bool "fpga loads - loads secure bitstreams" depends on CMD_FPGA diff --git a/cmd/fpga.c b/cmd/fpga.c index 91ccbee0fef..13aabc95abc 100644 --- a/cmd/fpga.c +++ b/cmd/fpga.c @@ -412,12 +412,12 @@ U_BOOT_CMD(fpga, 6, 1, do_fpga_wrapper, "info [dev] List known device information\n" "fpga dump
Load device to memory buffer\n" "fpga load
Load device from memory buffer\n" + "fpga loadb
Load device from bitstream buffer\n" + " (Xilinx only)\n" #if defined(CONFIG_CMD_FPGA_LOADP) "fpga loadp
Load device from memory buffer\n" " with partial bitstream\n" #endif - "fpga loadb
Load device from bitstream buffer\n" - " (Xilinx only)\n" #if defined(CONFIG_CMD_FPGA_LOADBP) "fpga loadbp
Load device from bitstream buffer\n" " with partial bitstream (Xilinx only)\n" -- 2.39.5