aboutsummaryrefslogtreecommitdiff
path: root/include/zynqmppl.h
diff options
context:
space:
mode:
authorOleksandr Suvorov2022-07-22 17:16:13 +0300
committerMichal Simek2022-07-26 09:34:21 +0200
commita3a1afb747d4d71c3dd5ba01b2796cebd65c65cd (patch)
tree10981e1b7fa28906e042b8bd9f64805d026d3bc7 /include/zynqmppl.h
parent5ab6a846349471be9b640da35d757d55dd8de487 (diff)
fpga: zynqmp: support loading authenticated images
Add supporting new compatible string "u-boot,zynqmp-fpga-ddrauth" to handle loading authenticated images (DDR). Based on solution by Jorge Ramirez-Ortiz <jorge@foundries.io> Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io> Tested-by: Ricardo Salveti <ricardo@foundries.io> Link: https://lore.kernel.org/r/20220722141614.297383-13-oleksandr.suvorov@foundries.io Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'include/zynqmppl.h')
-rw-r--r--include/zynqmppl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/zynqmppl.h b/include/zynqmppl.h
index 8401a850afb..87ccd2f394c 100644
--- a/include/zynqmppl.h
+++ b/include/zynqmppl.h
@@ -25,6 +25,10 @@
extern struct xilinx_fpga_op zynqmp_op;
+#if CONFIG_IS_ENABLED(FPGA_LOAD_SECURE)
+#define ZYNQMP_FPGA_FLAGS (FPGA_LEGACY | FPGA_XILINX_ZYNQMP_DDRAUTH)
+#else
#define ZYNQMP_FPGA_FLAGS (FPGA_LEGACY)
+#endif
#endif /* _ZYNQMPPL_H_ */