]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fpga: zynqmp: Protect zynqmp_loads() for SPL
authorMichal Simek <michal.simek@xilinx.com>
Thu, 10 Sep 2020 10:57:16 +0000 (12:57 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 23 Sep 2020 08:31:41 +0000 (10:31 +0200)
if conditions should match.

Fixes: a18d09ea384f ("fpga: zynqmp: Add secure bitstream loading for ZynqMP")
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/fpga/zynqmppl.c

index 03878d32ec1c2bbb66d08d20125a0a798285f827..8ce140a2e1abd7c2123ebefa76bcddc61a5ee351 100644 (file)
@@ -305,7 +305,7 @@ static int zynqmp_pcap_info(xilinx_desc *desc)
 
 struct xilinx_fpga_op zynqmp_op = {
        .load = zynqmp_load,
-#if defined CONFIG_CMD_FPGA_LOAD_SECURE
+#if defined(CONFIG_CMD_FPGA_LOAD_SECURE) && !defined(CONFIG_SPL_BUILD)
        .loads = zynqmp_loads,
 #endif
        .info = zynqmp_pcap_info,