u-boot/drivers
Neal Frager 749cbcfeac fpga: zynqmppl: fix fpga loads command for unencrypted use case
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>
2023-03-09 13:15:00 +01:00
..
adc adc: stm32mp15: add calibration support 2023-01-12 16:25:51 +01:00
ata ata: Don't try to use non-existent ports 2023-01-23 18:11:40 -05:00
axi WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
bios_emulator video: Rename structs and functions to avoid VBE 2022-08-12 08:14:23 -04:00
block bootstd: Add a new pre-scan priority for bootdevs 2023-01-23 18:11:41 -05:00
bootcount global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
bus bus: Optionally include TI sysc driver in SPL/TPL 2022-12-02 08:39:00 -05:00
button dm: button: add support for linux_code in button-gpio.c driver 2023-02-10 12:50:01 -05:00
cache driver: cache-v5l2: Fix type casting warning on RV32 2023-02-17 19:07:48 +08:00
clk arm64: zynqmp: Add missing ZYNQMP_FIRMWARE dependencies 2023-03-09 13:14:59 +01:00
core dm: Add a TPL symbol for simple-bus 2023-03-03 09:49:02 -05:00
cpu event: Correct dependencies on the EVENT framework 2023-01-18 12:46:13 -05:00
crypto Correct SPL uses of HW_WATCHDOG 2023-02-10 07:41:39 -05:00
ddr ddr: imx: Handle both 3733 and 3732 MTps rates 2023-01-30 21:02:27 +01:00
demo demo: migrate uclass to livetree 2021-10-05 08:50:15 -04:00
dfu blk: Switch over to using uclass IDs 2022-09-16 11:05:16 -04:00
dma ddr: fsl: Remove CONFIG_MEM_INIT_VALUE 2022-12-22 10:31:48 -05:00
fastboot Correct SPL uses of FASTBOOT_FLASH_NAND 2023-02-10 07:41:41 -05:00
firmware firmware: ti_sci: fix typo in boot authentication message name 2023-01-18 13:11:13 -05:00
fpga fpga: zynqmppl: fix fpga loads command for unencrypted use case 2023-03-09 13:15:00 +01:00
fuzz sandbox: Implement fuzzing engine driver 2022-06-23 12:58:19 -04:00
fwu-mdata FWU: Add FWU metadata access driver for GPT partitioned block devices 2022-10-31 14:47:32 -04:00
gpio Merge branch 'for-2023.04' of https://source.denx.de/u-boot/custodians/u-boot-mpc8xx 2023-02-12 15:25:09 -05:00
hwspinlock treewide: invaild -> invalid 2022-01-13 07:57:49 -05:00
i2c sandbox: Tidy up I2C options 2023-03-02 17:45:58 -05:00
input sh4: Drop unused twl6030 driver 2023-03-02 17:45:57 -05:00
iommu iommu: Implement mapping IOMMUs for PCI devices 2023-01-27 14:47:58 -05:00
led led: led_pwm: typo 'iverted' on code comment 2022-11-02 13:58:17 -04:00
mailbox mailbox: zynqmp: Enable ipi mailbox driver for Versal NET 2022-09-26 14:23:29 +02:00
memory memory: atmel-ebi: add Atmel EBI (External Bus Interface) driver 2022-12-08 18:06:27 +02:00
mfd mfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation 2022-12-08 18:06:27 +02:00
misc Correct SPL use of A003399_NOR_WORKAROUND 2023-02-09 16:32:25 -05:00
mmc arm64: zynqmp: Add missing ZYNQMP_FIRMWARE dependencies 2023-03-09 13:14:59 +01:00
mtd mtd: Drop unused kb9202_nand driver 2023-03-02 17:45:57 -05:00
mux Correct SPL uses of MULTIPLEXER 2023-03-02 17:45:58 -05:00
net arm64: zynqmp: Add missing ZYNQMP_FIRMWARE dependencies 2023-03-09 13:14:59 +01:00
nvme bootstd: Add a new pre-scan priority for bootdevs 2023-01-23 18:11:41 -05:00
pch treewide: Simply conditions with the new OF_REAL 2021-09-25 09:46:15 -06:00
pci sh4: Drop unused pci_sh7780 driver 2023-02-07 14:33:49 -05:00
pci_endpoint dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
phy phy: phy-mtk-tphy: add support mt8195 2023-03-02 22:43:43 +01:00
pinctrl Correct SPL use of ATMEL_PIO4 2023-02-10 08:22:52 -05:00
power power: Drop unused muic_max8997 driver 2023-02-07 14:33:49 -05:00
pwm ARM: tegra: Fix Tegra PWM parent clock 2023-02-23 12:55:36 -07:00
qe global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
ram ram: ast2600: Keep MPLL power on 2023-03-06 17:03:56 -05:00
reboot-mode reboot-mode: Add NVMEM reboot mode 2023-01-11 11:54:50 -05:00
remoteproc remoteproc: ipu: Add driver to bring up ipu 2022-02-08 11:00:03 -05:00
reset reset: uniphier: Add USB glue reset support 2023-02-22 19:40:11 +01:00
rng drivers: rng: optee_rng: register to CONFIG_OPTEE_SERVICE_DISCOVERY 2022-09-14 15:23:03 -04:00
rtc sandbox: Tidy up RTC options 2023-03-02 17:45:58 -05:00
scsi bootstd: Add a new pre-scan priority for bootdevs 2023-01-23 18:11:41 -05:00
serial Correct SPL uses of OF_BOARD 2023-02-10 07:41:41 -05:00
smem smem: msm: add missing <linux/sizes.h> 2022-10-12 08:56:24 -04:00
soc soc: zynqmp: Fix IDcode for xck24 2023-01-24 13:55:05 +01:00
sound test: test sandbox sound driver more rigorously 2022-12-05 17:43:21 +01:00
spi spi: tegra20_slink: accept any word length 2023-02-23 12:55:36 -07:00
spmi spmi: msm: add arbiter version 5 support 2021-10-31 08:46:44 -04:00
sysinfo dm: core: Switch uclass_*_device_err to use uclass_*_device_check 2022-10-29 07:36:33 -06:00
sysreset Correct SPL uses of DISPLAY_AER_FULL 2023-03-02 17:45:57 -05:00
tee tee: optee: fix uuid comparisons on service discovery 2023-01-20 10:04:56 +02:00
thermal thermal: add sandbox driver 2022-10-11 16:03:03 -04:00
timer timer: fttmr010: return a previously deleted driver now ported to DM 2023-03-06 17:03:56 -05:00
tpm tpm: sandbox: Change the return code when device is already open 2023-02-28 09:44:25 +02:00
ufs global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
usb usb: xhci-mtk: modify the SOF/ITP interval for mt8195 2023-03-02 22:43:43 +01:00
video video console: add 16x32 Terminus font from linux 2023-03-07 15:59:58 +01:00
virtio bootstd: Correct virtio block-device handling 2023-02-06 13:04:53 -05:00
w1 dm: treewide: Do not use the return value of simple uclass iterator 2022-10-29 07:36:33 -06:00
w1-eeprom dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
watchdog watchdog: Clean up defaults for imx_watchdog / ulp_wdog 2023-01-20 12:27:23 -05:00
xen Correct SPL uses of XEN_SERIAL 2023-02-10 07:41:41 -05:00
Kconfig mfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation 2022-12-08 18:06:27 +02:00
Makefile Correct SPL uses of MULTIPLEXER 2023-03-02 17:45:58 -05:00