[PATCH v6 1/7] fpga: add option for loading FPGA secure bitstreams

Michal Simek michal.simek at xilinx.com
Thu Apr 7 10:24:11 CEST 2022



On 2/7/22 12:18, Adrian Fiergolski wrote:
> From: Oleksandr Suvorov <oleksandr.suvorov at foundries.io>
> 
> It allows using this feature without enabling the "fpga loads"
> command.
> 
> Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov at foundries.io>
> Tested-by: Ricardo Salveti <ricardo at foundries.io>
> ---
>   cmd/Kconfig             |  3 ++-
>   drivers/fpga/Kconfig    | 14 ++++++++++++++
>   drivers/fpga/fpga.c     |  2 +-
>   drivers/fpga/xilinx.c   |  2 +-
>   drivers/fpga/zynqmppl.c |  4 ++--
>   5 files changed, 20 insertions(+), 5 deletions(-)
> 
> diff --git a/cmd/Kconfig b/cmd/Kconfig
> index 5e25e45fd2..604ab37f3b 100644
> --- a/cmd/Kconfig
> +++ b/cmd/Kconfig
> @@ -949,8 +949,9 @@ config CMD_FPGA_LOADP
>   	  a partial bitstream.
>   
>   config CMD_FPGA_LOAD_SECURE
> -	bool "fpga loads - loads secure bitstreams (Xilinx only)"
> +	bool "fpga loads - loads secure bitstreams"
>   	depends on CMD_FPGA
> +	select FPGA_LOAD_SECURE
>   	help
>   	  Enables the fpga loads command which is used to load secure
>   	  (authenticated or encrypted or both) bitstreams on to FPGA.
> diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig
> index dc0b3dd31b..262f95a252 100644
> --- a/drivers/fpga/Kconfig
> +++ b/drivers/fpga/Kconfig
> @@ -85,4 +85,18 @@ config FPGA_ZYNQPL
>   	  Enable FPGA driver for loading bitstream in BIT and BIN format
>   	  on Xilinx Zynq devices.
>   
> +config FPGA_LOAD_SECURE
> +	bool "Enable loading secure bitstreams"
> +	depends on FPGA
> +	help
> +	  Enables the fpga loads() functions that are used to load secure
> +	  (authenticated or encrypted or both) bitstreams on to FPGA.
> +
> +config SPL_FPGA_LOAD_SECURE
> +	bool "Enable loading secure bitstreams for SPL"
> +	depends on FPGA

This should be SPL_FPGA

M


More information about the U-Boot mailing list