mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-30 16:13:27 +08:00
749cbcfeac
When using the fpga loads command, the driver is passing the AES encryption key address is all cases. However, for the authenticated, but not encrypted use case, there is no AES encryption key, and this value is 0. When AES encryption is not used on the fpga bitstream, the pmufw assumes that the AES key address is a bitstream size value like what is used by the unsecure fpga load command. To fix the problem, this patch checks to see if the AES key address is zero. If the AES key address is zero, it means that AES is not being used on the bitstream and the bitstream size should be passed instead. Thus, matching the fpga load functionality. Signed-off-by: Neal Frager <neal.frager@amd.com> Acked-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com> Link: https://lore.kernel.org/r/20230214131959.40298-1-neal.frager@amd.com Signed-off-by: Michal Simek <michal.simek@amd.com> |
||
---|---|---|
.. | ||
ACEX1K.c | ||
altera.c | ||
cyclon2.c | ||
fpga-uclass.c | ||
fpga.c | ||
intel_sdm_mb.c | ||
ivm_core.c | ||
Kconfig | ||
lattice.c | ||
Makefile | ||
sandbox.c | ||
socfpga_arria10.c | ||
socfpga_gen5.c | ||
socfpga.c | ||
spartan2.c | ||
spartan3.c | ||
stratixII.c | ||
stratixv.c | ||
versalpl.c | ||
virtex2.c | ||
xilinx.c | ||
zynqmppl.c | ||
zynqpl.c |