u-boot/drivers/fpga
Simon Glass c5819701a3 image: Adjust the workings of fit_check_format()
At present this function does not accept a size for the FIT. This means
that it must be read from the FIT itself, introducing potential security
risk. Update the function to include a size parameter, which can be
invalid, in which case fit_check_format() calculates it.

For now no callers pass the size, but this can be updated later.

Also adjust the return value to an error code so that all the different
types of problems can be distinguished by the user.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Bruce Monroe <bruce.monroe@intel.com>
Reported-by: Arie Haenel <arie.haenel@intel.com>
Reported-by: Julien Lenoir <julien.lenoir@intel.com>
2021-02-15 22:31:52 -05:00
..
ACEX1K.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
altera.c fpga: altera: Rename Stratix10 FPGA to Intel FPGA SDM Mailbox 2020-10-09 17:53:12 +08:00
cyclon2.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
fpga.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
intel_sdm_mb.c arm: socfpga: soc64: Add ATF support for FPGA reconfig driver 2021-01-15 17:48:37 +08:00
ivm_core.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Kconfig arm: socfpga: agilex: Enable FPGA Full Reconfiguration support 2020-10-09 17:53:12 +08:00
lattice.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
Makefile fpga: altera: Rename Stratix10 FPGA to Intel FPGA SDM Mailbox 2020-10-09 17:53:12 +08:00
socfpga.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
socfpga_arria10.c image: Adjust the workings of fit_check_format() 2021-02-15 22:31:52 -05:00
socfpga_gen5.c arm: socfpga: Convert system manager from struct to defines 2020-01-07 14:38:33 +01:00
spartan2.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spartan3.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
stratixII.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
stratixv.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
versalpl.c xilinx: zynqmp: synchronize firmware call return payload 2020-08-20 09:49:20 +02:00
virtex2.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
xilinx.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
zynqmppl.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
zynqpl.c fpga: zynqpl: Flush dcache only for non-bitstream data 2020-06-24 13:07:58 +02:00